Simple Question (Direct)
Simple Question
Q16000358
P241
Q781132
USER
Which military branch is Jesse Peters associated with ?
(Q16000358,P241,c(Q781132))
action filter_type
action find
entity Q16000358
relation P241
type Q781132
['Q16000358', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q781132 . resource:Q16000358 property:P241 ?j }
Jesse Peters
action filter_type
action find
entity Jesse Peters
relation military branch
type military branch
['Jesse Peters', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:military_branch . resource:Jesse_Peters property:military_branch ?j }
[]
military branch
Q9212
SYSTEM
United States Army
Q9212
(Q16000358,P241,c(Q781132))
action filter_type
action find
entity Q16000358
relation P241
type Q781132
Jesse Peters is associated with [ANSWER]
['Q16000358', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q781132 . resource:Q16000358 property:P241 ?j }
United States Army
Jesse Peters is associated with United States Army
United States Army
action filter_type
action find
entity Jesse Peters
relation military branch
type military branch
['Jesse Peters', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:military_branch . resource:Jesse_Peters property:military_branch ?j }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9212
P166
Q4220917
USER
What was received by that military branch ?
(Q9212,P166,c(Q4220917))
action filter_type
action find
entity Q9212
relation P166
type Q4220917
['Q9212', 'P166', {'concept': 'Q4220917'}]
SELECT DISTINCT ?h WHERE { resource:Q9212 property:P166 ?h . ?h rdf:type ontology:Q4220917 }
United States Army
action filter_type
action find
entity United States Army
relation award received
type film award
['United States Army', 'award received', {'concept': 'film award'}]
SELECT DISTINCT ?h WHERE { resource:United_States_Army property:award_received ?h . ?h rdf:type ontology:film_award }
[]
film award
Q1425151
SYSTEM
Academy Award for Best Documentary, Short Subject
Q1425151
(Q9212,P166,c(Q4220917))
action filter_type
action find
entity Q9212
relation P166
type Q4220917
[ANSWER] was received by that military branch
['Q9212', 'P166', {'concept': 'Q4220917'}]
SELECT DISTINCT ?h WHERE { resource:Q9212 property:P166 ?h . ?h rdf:type ontology:Q4220917 }
Academy Award for Best Documentary, Short Subject
Academy Award for Best Documentary, Short Subject was received by that military branch
Academy Award for Best Documentary, Short Subject
action filter_type
action find
entity United States Army
relation award received
type film award
['United States Army', 'award received', {'concept': 'film award'}]
SELECT DISTINCT ?h WHERE { resource:United_States_Army property:award_received ?h . ?h rdf:type ontology:film_award }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3926245 Q16000358
P27 P17
Q15617994
USER
Which administrative territories do Jesse Peters belong to or are QT8 situated in ?
OR((Q16000358,P27,c(Q15617994)), (Q3926245,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q16000358
relation P27
action find
entity Q3926245
relation P17
type Q15617994
{'OR': [['Q16000358', 'P27', {'concept': 'Q15617994'}], ['Q3926245', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . { { resource:Q16000358 property:P27 ?a } UNION { resource:Q3926245 property:P17 ?a } } }
QT8 Jesse Peters
action filter_type
action union
action find
entity Jesse Peters
relation country of citizenship
action find
entity QT8
relation country
type designation for an administrative territorial entity
{'OR': [['Jesse Peters', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['QT8', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Jesse_Peters property:country_of_citizenship ?a } UNION { resource:QT8 property:country ?a } } }
[]
designation for an administrative territorial entity
Q30 Q38
SYSTEM
United States of America, Italy
Q30 Q38
OR((Q16000358,P27,c(Q15617994)), (Q3926245,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q16000358
relation P27
action find
entity Q3926245
relation P17
type Q15617994
Jesse Peters belong to [ANSWERS]
{'OR': [['Q16000358', 'P27', {'concept': 'Q15617994'}], ['Q3926245', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . { { resource:Q16000358 property:P27 ?a } UNION { resource:Q3926245 property:P17 ?a } } }
United States of America Italy
Jesse Peters belong to United States of America and Italy
United States of America Italy
action filter_type
action union
action find
entity Jesse Peters
relation country of citizenship
action find
entity QT8
relation country
type designation for an administrative territorial entity
{'OR': [['Jesse Peters', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['QT8', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Jesse_Peters property:country_of_citizenship ?a } UNION { resource:QT8 property:country ?a } } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q15416 Q2088357
USER
How many administrative territories are the countries of origin of lesser number of television programs and musical ensembles than that administrative territory ?
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2088357 }
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:musical_ensemble }
[]
designation for an administrative territorial entity television program musical ensemble
Comparative|Count over More/Less|Mult. entity type|Clarification
Q38
SYSTEM
Did you mean Italy ?
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2088357 }
Did you mean Italy ?
Italy
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:musical_ensemble }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant United States of America. Could you tell me the answer for that?
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
Q30
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
168
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q145 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2088357 }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands United Kingdom Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
168
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:musical_ensemble }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q30 Q21
P551
Q502895
USER
How many people dwell at United States of America and England ?
(c(Q502895),P551,Q30) (c(Q502895),P551,Q21)
action count
action intersection
action filter_type
action find_reverse
entity Q30
relation P551
type Q502895
action filter_type
action find_reverse
entity Q21
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q30'] [{'concept': 'Q502895'}, 'P551', 'Q21']
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { ?g property:P551 resource:Q30 . ?g rdf:type ontology:Q502895 . ?g rdf:type ontology:Q502895 . ?g property:P551 resource:Q21 }
United States of America England
action count
action intersection
action filter_type
action find_reverse
entity United States of America
relation residence
type common name
action filter_type
action find_reverse
entity England
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'United States of America'] [{'concept': 'common name'}, 'residence', 'England']
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { ?g property:residence resource:United_States_of_America . ?g rdf:type ontology:common_name . ?g rdf:type ontology:common_name . ?g property:residence resource:England }
[]
common name
SYSTEM
4
Q1331681 Q8006910 Q7085 Q171363
(c(Q502895),P551,Q30) (c(Q502895),P551,Q21)
action count
action intersection
action filter_type
action find_reverse
entity Q30
relation P551
type Q502895
action filter_type
action find_reverse
entity Q21
relation P551
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P551', 'Q30'] [{'concept': 'Q502895'}, 'P551', 'Q21']
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { ?g property:P551 resource:Q30 . ?g rdf:type ontology:Q502895 . ?g rdf:type ontology:Q502895 . ?g property:P551 resource:Q21 }
Ella Briggs William Close Niels Bohr Viggo Mortensen
4
action count
action intersection
action filter_type
action find_reverse
entity United States of America
relation residence
type common name
action filter_type
action find_reverse
entity England
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'United States of America'] [{'concept': 'common name'}, 'residence', 'England']
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { ?g property:residence resource:United_States_of_America . ?g rdf:type ontology:common_name . ?g rdf:type ontology:common_name . ?g property:residence resource:England }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P38
Q8142
USER
What is the currency of United States of America ?
(Q30,P38,c(Q8142))
action filter_type
action find
entity Q30
relation P38
type Q8142
['Q30', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?x WHERE { resource:Q30 property:P38 ?x . ?x rdf:type ontology:Q8142 }
United States of America
action filter_type
action find
entity United States of America
relation currency
type currency
['United States of America', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?x WHERE { resource:United_States_of_America property:currency ?x . ?x rdf:type ontology:currency }
[]
currency
Q4917
SYSTEM
United States dollar
Q4917
(Q30,P38,c(Q8142))
action filter_type
action find
entity Q30
relation P38
type Q8142
The currency of United States of America is the [ANSWER]
['Q30', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?x WHERE { resource:Q30 property:P38 ?x . ?x rdf:type ontology:Q8142 }
United States dollar
The currency of United States of America is the United States dollar
United States dollar
action filter_type
action find
entity United States of America
relation currency
type currency
['United States of America', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?x WHERE { resource:United_States_of_America property:currency ?x . ?x rdf:type ontology:currency }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P194
Q1752346
USER
Which assembly is the legislative body for Italy ?
(Q38,P194,c(Q1752346))
action filter_type
action find
entity Q38
relation P194
type Q1752346
['Q38', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?v WHERE { resource:Q38 property:P194 ?v . ?v rdf:type ontology:Q1752346 }
Italy
action filter_type
action find
entity Italy
relation legislative body
type assembly
['Italy', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?v WHERE { resource:Italy property:legislative_body ?v . ?v rdf:type ontology:assembly }
[]
assembly
Q1117578
SYSTEM
Italian Parliament
Q1117578
(Q38,P194,c(Q1752346))
action filter_type
action find
entity Q38
relation P194
type Q1752346
[ANSWER] is the legislative body for Italy
['Q38', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?v WHERE { resource:Q38 property:P194 ?v . ?v rdf:type ontology:Q1752346 }
Italian Parliament
Italian Parliament is the legislative body for Italy
Italian Parliament
action filter_type
action find
entity Italy
relation legislative body
type assembly
['Italy', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?v WHERE { resource:Italy property:legislative_body ?v . ?v rdf:type ontology:assembly }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P361
Q1752346 Q7210356
USER
How many assemblies are less number of political organizations a component of than that assembly ?
(c(Q7210356),P361,c(Q1752346))
action count
action less
action find_tuple_counts
relation P361
type Q1752346
type Q7210356
action count
action filter_type
action find
entity Q1117578
relation P361
type Q1752346
[{'concept': 'Q7210356'}, 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?t ) WHERE { resource:Q1117578 property:P361 ?l . ?l rdf:type ontology:Q1752346 } } . FILTER ( ?i < ?t ) . { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?i ) WHERE { ?f property:P361 ?k . ?k rdf:type ontology:Q7210356 . ?f rdf:type ontology:Q1752346 } GROUP BY ?f } }
action count
action less
action find_tuple_counts
relation part of
type assembly
type political organization
action count
action filter_type
action find
entity Italian Parliament
relation part of
type assembly
[{'concept': 'political organization'}, 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?t ) WHERE { resource:Italian_Parliament property:part_of ?l . ?l rdf:type ontology:assembly } } . FILTER ( ?i < ?t ) . { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?i ) WHERE { ?f property:part_of ?k . ?k rdf:type ontology:political_organization . ?f rdf:type ontology:assembly } GROUP BY ?f } }
[]
assembly political organization
SYSTEM
0
(c(Q7210356),P361,c(Q1752346))
action count
action less
action find_tuple_counts
relation P361
type Q1752346
type Q7210356
action count
action filter_type
action find
entity Q1117578
relation P361
type Q1752346
[ANSWER]
[{'concept': 'Q7210356'}, 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?t ) WHERE { resource:Q1117578 property:P361 ?l . ?l rdf:type ontology:Q1752346 } } . FILTER ( ?i < ?t ) . { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?i ) WHERE { ?f property:P361 ?k . ?k rdf:type ontology:Q7210356 . ?f rdf:type ontology:Q1752346 } GROUP BY ?f } }
0
action count
action less
action find_tuple_counts
relation part of
type assembly
type political organization
action count
action filter_type
action find
entity Italian Parliament
relation part of
type assembly
[{'concept': 'political organization'}, 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?t ) WHERE { resource:Italian_Parliament property:part_of ?l . ?l rdf:type ontology:assembly } } . FILTER ( ?i < ?t ) . { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?i ) WHERE { ?f property:part_of ?k . ?k rdf:type ontology:political_organization . ?f rdf:type ontology:assembly } GROUP BY ?f } }
[]