CQNoProj : Containment of Conjunctive Queries with No Projection benchmark testcases

This suite is designed to address the containment of basic graph patterns (conjunctive queries). It contains 20 queries differing in the number of conjunctions and variables they contain. This test suite is developed for containment solvers that do not support projection of variables in queries.

Q1a Q1b
PREFIX : 

SELECT * WHERE { 
   ?x :takesCourse "Course10" . ?x :takesCourse "Course20" . 
}
                        
PREFIX : 


SELECT * WHERE { 
   ?x :takesCourse "Course10" .
}
                        
Q1b Q1a
PREFIX : 


SELECT * WHERE { 
   ?x :takesCourse "Course10" .
}
                        
PREFIX : 

SELECT * WHERE { 
   ?x :takesCourse "Course10" . ?x :takesCourse "Course20" . 
}
                        
Q2a Q2b
PREFIX : 



SELECT * WHERE {
	?x a :Student .
	?x :registeredAt ?y .
	?y a :University .
	?x :placeOfBirth ?z .
	?z a :City .
	?y :locatedAt ?z .	
}
                        
PREFIX : 





SELECT * WHERE {
	?x a :Student .
	?x :registeredAt ?y .
	?x :placeOfBirth ?z .
	?y a :University .
	?y :locatedAt ?z .	
	?z a :City .
}
                        
Q2b Q2a
PREFIX : 





SELECT * WHERE {
	?x a :Student .
	?x :registeredAt ?y .
	?x :placeOfBirth ?z .
	?y a :University .
	?y :locatedAt ?z .	
	?z a :City .
}
                        
PREFIX : 



SELECT * WHERE {
	?x a :Student .
	?x :registeredAt ?y .
	?y a :University .
	?x :placeOfBirth ?z .
	?z a :City .
	?y :locatedAt ?z .	
}
                        
Q3a Q3b
PREFIX : 

SELECT * WHERE {
	?x a :Professor .
	?x :graduatedFrom ?y .
	?x :memeberOf ?y 
}
                        
PREFIX : 

SELECT * WHERE {
	?x a :Professor .
	?x :memeberOf ?y 
}
                        
Q3b Q3a
PREFIX : 

SELECT * WHERE {
	?x a :Professor .
	?x :memeberOf ?y 
}
                        
PREFIX : 

SELECT * WHERE {
	?x a :Professor .
	?x :graduatedFrom ?y .
	?x :memeberOf ?y 
}
                        
Q4c Q4b
PREFIX : 

SELECT * WHERE {
	?x :takesCourse ?c1 .
	?c1 :shortName "Cs200" .
	?x :takesCourse ?c2 .
	?c2 :shortName "Cs301" .
	?x :takesCourse _:b .
	_:b :shortName "Cs401" .
}
                        
PREFIX : 

SELECT * WHERE {
	?x :takesCourse ?c1 .
	?c1 :shortName "Cs200" .
	?x :takesCourse ?c2 .
	?c2 :shortName "Cs301" .
}
                        
Q4b Q4c
PREFIX : 

SELECT * WHERE {
	?x :takesCourse ?c1 .
	?c1 :shortName "Cs200" .
	?x :takesCourse ?c2 .
	?c2 :shortName "Cs301" .
}
                        
PREFIX : 

SELECT * WHERE {
	?x :takesCourse ?c1 .
	?c1 :shortName "Cs200" .
	?x :takesCourse ?c2 .
	?c2 :shortName "Cs301" .
	?x :takesCourse _:b .
	_:b :shortName "Cs401" .
}
                        
Q6a Q6b
PREFIX : 

SELECT * WHERE {
	?x a :Department .
	?y a :University .
	?x ?z ?y .
}
                        
PREFIX : 

SELECT * WHERE {
	?x a :Faculty .
	?y a :University .
	?x ?z ?y .
}
                        
Q6b Q6a
PREFIX : 

SELECT * WHERE {
	?x a :Faculty .
	?y a :University .
	?x ?z ?y .
}
                        
PREFIX : 

SELECT * WHERE {
	?x a :Department .
	?y a :University .
	?x ?z ?y .
}
                        
Q6a Q6c
PREFIX : 

SELECT * WHERE {
	?x a :Department .
	?y a :University .
	?x ?z ?y .
}
                        
PREFIX : 

SELECT * WHERE {
	?x ?z ?y .
}
                        
Q6c Q6a
PREFIX : 

SELECT * WHERE {
	?x ?z ?y .
}
                        
PREFIX : 

SELECT * WHERE {
	?x a :Department .
	?y a :University .
	?x ?z ?y .
}
                        
Q6b Q6c
PREFIX : 

SELECT * WHERE {
	?x a :Faculty .
	?y a :University .
	?x ?z ?y .
}
                        
PREFIX : 

SELECT * WHERE {
	?x ?z ?y .
}
                        
Q6c Q6b
PREFIX : 

SELECT * WHERE {
	?x ?z ?y .
}
                        
PREFIX : 

SELECT * WHERE {
	?x a :Faculty .
	?y a :University .
	?x ?z ?y .
}
                        
Q7a Q7b
PREFIX : 

SELECT * WHERE 
{ 
  ?x a :Student .
  ?x :name ?y . 
  ?x :nickName ?z . 
  ?x :telephone ?tel . 
  ?x :ssn ?ssn . 
  ?x :age ?age . 
  ?x :sex ?sex . 
  ?x :emailAddress ?email . 
  ?x :memberOf ?dept . 
  ?x :takesCourse ?course . 
}
                        
PREFIX : 

SELECT * WHERE 
{ 
  ?x a :Student .
  ?x :name ?y . 
  ?x :nickName ?z . 
  ?x :telephone ?tel . 
  ?x :ssn ?ssn . 
  ?x :age ?age . 
  ?x :sex ?sex . 
  ?x :emailAddress ?email . 
  ?x :memberOf ?dept . 
  ?x :takesCourse ?course . 
  ?x :masterDegreeFrom :OklahomaUniversity .
}
                        
Q7b Q7a
PREFIX : 

SELECT * WHERE 
{ 
  ?x a :Student .
  ?x :name ?y . 
  ?x :nickName ?z . 
  ?x :telephone ?tel . 
  ?x :ssn ?ssn . 
  ?x :age ?age . 
  ?x :sex ?sex . 
  ?x :emailAddress ?email . 
  ?x :memberOf ?dept . 
  ?x :takesCourse ?course . 
  ?x :masterDegreeFrom :OklahomaUniversity .
}
                        
PREFIX : 

SELECT * WHERE 
{ 
  ?x a :Student .
  ?x :name ?y . 
  ?x :nickName ?z . 
  ?x :telephone ?tel . 
  ?x :ssn ?ssn . 
  ?x :age ?age . 
  ?x :sex ?sex . 
  ?x :emailAddress ?email . 
  ?x :memberOf ?dept . 
  ?x :takesCourse ?course . 
}
                        
Q8a Q8b
PREFIX : 

SELECT * WHERE {
	?x :subOrganizationOf ?y .
	?y :subOrganizationOf ?z .
	?z :subOrganizationOf ?r .
	?r :subOrganizationOf :Unibz .
}


                        
PREFIX : 

SELECT * WHERE {
	?x :subOrganizationOf ?y .
	?y :subOrganizationOf ?z .
	?z :subOrganizationOf ?r .
}


                        
Q8b Q8a
PREFIX : 

SELECT * WHERE {
	?x :subOrganizationOf ?y .
	?y :subOrganizationOf ?z .
	?z :subOrganizationOf ?r .
}


                        
PREFIX : 

SELECT * WHERE {
	?x :subOrganizationOf ?y .
	?y :subOrganizationOf ?z .
	?z :subOrganizationOf ?r .
	?r :subOrganizationOf :Unibz .
}


                        
Q9a Q9b
PREFIX : 

SELECT * WHERE {
	?x a :GraduateStudent .
	?y a :Department .
	?x :memberOf ?y .
	?y :subOrganizationOf :UniversityO .
	?x :email ?z .
}
                        
PREFIX : 

SELECT * WHERE {
	?x a :GraduateStudent .
	?y a :Department .
	?x :memberOf ?y .
	?y :subOrganizationOf :University1 .
	?x :email ?z .
}
                        
Q9b Q9a
PREFIX : 

SELECT * WHERE {
	?x a :GraduateStudent .
	?y a :Department .
	?x :memberOf ?y .
	?y :subOrganizationOf :University1 .
	?x :email ?z .
}
                        
PREFIX : 

SELECT * WHERE {
	?x a :GraduateStudent .
	?y a :Department .
	?x :memberOf ?y .
	?y :subOrganizationOf :UniversityO .
	?x :email ?z .
}
                        
Generated on Fri Jun 14 16:41:20 CEST 2013 with SuiteTool.