Simple Question (Direct)
Simple Question
Q2975132
P21
Q290
USER
What is the sex of Claire Vernet ?
(Q2975132,P21,c(Q290))
action filter_type
action find
entity Q2975132
relation P21
type Q290
['Q2975132', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q2975132 property:P21 ?p . ?p rdf:type ontology:Q290 }
Claire Vernet
action filter_type
action find
entity Claire Vernet
relation gender
type sex
['Claire Vernet', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Claire_Vernet property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q2975132,P21,c(Q290))
action filter_type
action find
entity Q2975132
relation P21
type Q290
The sex of Claire Vernet is the [ANSWER]
['Q2975132', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q2975132 property:P21 ?p . ?p rdf:type ontology:Q290 }
female
The sex of Claire Vernet is the female
female
action filter_type
action find
entity Claire Vernet
relation gender
type sex
['Claire Vernet', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Claire_Vernet property:gender ?p . ?p rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2975132
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q6581072,P27,c(Q15617994))
action filter_type
action find
entity Q2975132
relation P27
type Q15617994
['Q6581072', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q2975132 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Claire Vernet
action filter_type
action find
entity Claire Vernet
relation country of citizenship
type designation for an administrative territorial entity
['female', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Claire_Vernet property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q6581072,P27,c(Q15617994))
action filter_type
action find
entity Q2975132
relation P27
type Q15617994
The [ANSWER] is that person a civilian of
['Q6581072', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q2975132 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
France
The France is that person a civilian of
France
action filter_type
action find
entity Claire Vernet
relation country of citizenship
type designation for an administrative territorial entity
['female', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Claire_Vernet property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q774
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with more number of administrative territories than Guatemala ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q774
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?g ) WHERE { ?p rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 . ?y property:P530 ?p } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Q774 property:P530 ?v . ?v rdf:type ontology:Q15617994 } } . FILTER ( ?g > ?k ) }
Guatemala
action greater
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Guatemala
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?g ) WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:diplomatic_relation ?p } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Guatemala property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g > ?k ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q236 Q230 Q233 Q27 Q28 Q1049 Q189 Q843 Q184 Q1029 Q736 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q974 Q1033 Q1030 Q191 Q963 Q298 Q115 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q219 Q916 Q1009 Q1008 Q971 Q874 Q79 Q77 Q858 Q878 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q774
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with more number of administrative territories than Guatemala
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?g ) WHERE { ?p rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 . ?y property:P530 ?p } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Q774 property:P530 ?v . ?v rdf:type ontology:Q15617994 } } . FILTER ( ?g > ?k ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Montenegro Georgia Malta Ireland Hungary Sudan Iceland Pakistan Belarus Mozambique Ecuador Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Democratic Republic of the Congo Nigeria Namibia Estonia Botswana Chile Ethiopia Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Angola Cameroon Côte d'Ivoire Republic of the Congo Turkmenistan Egypt Uruguay Syria United Arab Emirates Jordan Libya Cape Verde Spain Thailand Zambia
Italy, Brazil and United States of America have diplomatic relations with more number of administrative territories than Guatemala
Italy Brazil United States of America
action greater
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Guatemala
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?g ) WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:diplomatic_relation ?p } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Guatemala property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g > ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q822
P530
Q15617994 Q15617994
USER
And also tell me about Lebanon?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q822
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?v ) WHERE { ?g rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 . ?g property:P530 ?p } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { ?a property:P530 resource:Q822 . ?a rdf:type ontology:Q15617994 } } . FILTER ( ?v > ?m ) }
Lebanon
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Lebanon
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?v ) WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g property:diplomatic_relation ?p } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { ?a property:diplomatic_relation resource:Lebanon . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v > ?m ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q403 Q159 Q43 Q155 Q796 Q794 Q30 Q38 Q347 Q17 Q79 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q822
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?v ) WHERE { ?g rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 . ?g property:P530 ?p } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { ?a property:P530 resource:Q822 . ?a rdf:type ontology:Q15617994 } } . FILTER ( ?v > ?m ) }
Israel Yemen India Argentina France United Kingdom People's Republic of China Serbia Russia Turkey Brazil Iraq Iran United States of America Italy Liechtenstein Japan Egypt Libya Cape Verde Zambia
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Lebanon
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?v ) WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g property:diplomatic_relation ?p } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { ?a property:diplomatic_relation resource:Lebanon . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v > ?m ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have tactful political relations with atleast 15 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 15
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?x >= 15 ) . { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?x ) WHERE { ?w rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q15617994 . ?w property:P530 ?u } GROUP BY ?w } }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 15
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?x >= 15 ) . { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?x ) WHERE { ?w rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w property:diplomatic_relation ?u } GROUP BY ?w } }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408 Q16
SYSTEM
Germany, Australia, Canada
Q183 Q408 Q16
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 15
[ANSWERS] have tactful political relations with atleast 15 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?x >= 15 ) . { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?x ) WHERE { ?w rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q15617994 . ?w property:P530 ?u } GROUP BY ?w } }
Germany Australia Canada
Germany, Australia and Canada have tactful political relations with atleast 15 administrative territories
Germany Australia Canada
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 15
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?x >= 15 ) . { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?x ) WHERE { ?w rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w property:diplomatic_relation ?u } GROUP BY ?w } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1642386 Q2975132
P19
Q56061
USER
Which administrative territories were Claire Vernet or Ernie C born in ?
OR((Q2975132,P19,c(Q56061)), (Q1642386,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2975132
relation P19
action find
entity Q1642386
relation P19
type Q56061
{'OR': [['Q2975132', 'P19', {'concept': 'Q56061'}], ['Q1642386', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q2975132 property:P19 ?g } UNION { resource:Q1642386 property:P19 ?g } } . ?g rdf:type ontology:Q56061 }
Ernie C Claire Vernet
action filter_type
action union
action find
entity Claire Vernet
relation place of birth
action find
entity Ernie C
relation place of birth
type administrative territorial entity
{'OR': [['Claire Vernet', 'place of birth', {'concept': 'administrative territorial entity'}], ['Ernie C', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Claire_Vernet property:place_of_birth ?g } UNION { resource:Ernie_C property:place_of_birth ?g } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q38022 Q90
SYSTEM
St. Louis, Paris
Q38022 Q90
OR((Q2975132,P19,c(Q56061)), (Q1642386,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2975132
relation P19
action find
entity Q1642386
relation P19
type Q56061
Claire Vernet or Ernie C were born in [ANSWERS]
{'OR': [['Q2975132', 'P19', {'concept': 'Q56061'}], ['Q1642386', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q2975132 property:P19 ?g } UNION { resource:Q1642386 property:P19 ?g } } . ?g rdf:type ontology:Q56061 }
St. Louis Paris
Claire Vernet or Ernie C were born in St. Louis and Paris
St. Louis Paris
action filter_type
action union
action find
entity Claire Vernet
relation place of birth
action find
entity Ernie C
relation place of birth
type administrative territorial entity
{'OR': [['Claire Vernet', 'place of birth', {'concept': 'administrative territorial entity'}], ['Ernie C', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Claire_Vernet property:place_of_birth ?g } UNION { resource:Ernie_C property:place_of_birth ?g } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1860 Q38022
P840 P364
Q838948
USER
Which works of art have their setting located at St. Louis and are known to be originally created in English language ?
AND((c(Q838948),P840,Q38022), (c(Q838948),P364,Q1860))
action filter_type
action intersection
action find_reverse
entity Q38022
relation P840
action find_reverse
entity Q1860
relation P364
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P840', 'Q38022'], [{'concept': 'Q838948'}, 'P364', 'Q1860']]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q838948 . ?c property:P840 resource:Q38022 . ?c property:P364 resource:Q1860 }
English St. Louis
action filter_type
action intersection
action find_reverse
entity St. Louis
relation narrative location
action find_reverse
entity English
relation original language of work
type work of art
{'AND': [[{'concept': 'work of art'}, 'narrative location', 'St. Louis'], [{'concept': 'work of art'}, 'original language of work', 'English']]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:work_of_art . ?c property:narrative_location resource:St._Louis . ?c property:original_language_of_work resource:English }
[]
work of art
Q1472274 Q886719 Q7764779 Q3801252 Q1216271 Q1306527 Q3139276 Q1676240 Q1066873 Q9125658
SYSTEM
Some of them are White Palace, Manhunter, The Sleeper, Identity Thief, American Flyers, One Night at McCool's, The Great St. Louis Bank Robbery, The Spirit of St. Louis, Meet Me in St. Louis, Red Dragon
Q3801252 Q1472274 Q1306527 Q3139276 Q886719 Q9125658 Q7764779 Q1630996 Q1066873 Q1676240 Q1216271
AND((c(Q838948),P840,Q38022), (c(Q838948),P364,Q1860))
action filter_type
action intersection
action find_reverse
entity Q38022
relation P840
action find_reverse
entity Q1860
relation P364
type Q838948
[ANSWERS]
{'AND': [[{'concept': 'Q838948'}, 'P840', 'Q38022'], [{'concept': 'Q838948'}, 'P364', 'Q1860']]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q838948 . ?c property:P840 resource:Q38022 . ?c property:P364 resource:Q1860 }
Identity Thief White Palace One Night at McCool's The Great St. Louis Bank Robbery Manhunter Red Dragon The Sleeper King of the Hill Meet Me in St. Louis The Spirit of St. Louis American Flyers
The Spirit of St. Louis, meet Me in St. Louis and Red Dragon have their setting located at St. Louis and are known to be originally created in English language
White Palace Manhunter The Sleeper Identity Thief American Flyers One Night at McCool's The Great St. Louis Bank Robbery The Spirit of St. Louis Meet Me in St. Louis Red Dragon
action filter_type
action intersection
action find_reverse
entity St. Louis
relation narrative location
action find_reverse
entity English
relation original language of work
type work of art
{'AND': [[{'concept': 'work of art'}, 'narrative location', 'St. Louis'], [{'concept': 'work of art'}, 'original language of work', 'English']]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:work_of_art . ?c property:narrative_location resource:St._Louis . ?c property:original_language_of_work resource:English }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9125658
P162
Q502895
USER
Which person produced Red Dragon ?
(Q9125658,P162,c(Q502895))
action filter_type
action find
entity Q9125658
relation P162
type Q502895
['Q9125658', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q9125658 property:P162 ?x . ?x rdf:type ontology:Q502895 }
Red Dragon
action filter_type
action find
entity Red Dragon
relation producer
type common name
['Red Dragon', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Red_Dragon property:producer ?x . ?x rdf:type ontology:common_name }
[]
common name
Q296796
SYSTEM
Dino De Laurentiis
Q296796
(Q9125658,P162,c(Q502895))
action filter_type
action find
entity Q9125658
relation P162
type Q502895
[ANSWER] produced Red Dragon
['Q9125658', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q9125658 property:P162 ?x . ?x rdf:type ontology:Q502895 }
Dino De Laurentiis
Dino De Laurentiis produced Red Dragon
Dino De Laurentiis
action filter_type
action find
entity Red Dragon
relation producer
type common name
['Red Dragon', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Red_Dragon property:producer ?x . ?x rdf:type ontology:common_name }
[]