Simple Question (Direct)
Simple Question
Q13417189
P161
Q502895
USER
Who were casted in Interstellar ?
(Q13417189,P161,c(Q502895))
action filter_type
action find
entity Q13417189
relation P161
type Q502895
['Q13417189', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q13417189 property:P161 ?i . ?i rdf:type ontology:Q502895 }
Interstellar
action filter_type
action find
entity Interstellar
relation cast member
type common name
['Interstellar', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Interstellar property:cast_member ?i . ?i rdf:type ontology:common_name }
[]
common name
Q311271 Q175535 Q123351
SYSTEM
John Lithgow, Matt Damon, Michael Caine
Q175535 Q5368467 Q277978 Q123351 Q218800 Q270730 Q188955 Q368037 Q461623 Q1174630 Q603317 Q229313 Q311271 Q117415 Q94913 Q211144 Q451880 Q36301 Q2604240
(Q13417189,P161,c(Q502895))
action filter_type
action find
entity Q13417189
relation P161
type Q502895
[ANSWERS] were casted in Interstellar
['Q13417189', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q13417189 property:P161 ?i . ?i rdf:type ontology:Q502895 }
Matt Damon Elyes Gabel Topher Grace Michael Caine David Oyelowo Casey Affleck Matthew McConaughey Wes Bentley Leah Cairns David Gyasi Bill Irwin Jessica Chastain John Lithgow Josh Stewart Mackenzie Foy Ellen Burstyn William Devane Anne Hathaway Collette Wolfe
John Lithgow, Matt Damon and Michael Caine were casted in Interstellar
John Lithgow Matt Damon Michael Caine
action filter_type
action find
entity Interstellar
relation cast member
type common name
['Interstellar', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Interstellar property:cast_member ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q175535
P103
Q34770
USER
Which language is the mother tongue of Matt Damon ?
(Q175535,P103,c(Q34770))
action filter_type
action find
entity Q175535
relation P103
type Q34770
['Q175535', 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ?z WHERE { resource:Q175535 property:P103 ?z . ?z rdf:type ontology:Q34770 }
Matt Damon
action filter_type
action find
entity Matt Damon
relation native language
type language
['Matt Damon', 'native language', {'concept': 'language'}]
SELECT DISTINCT ?z WHERE { resource:Matt_Damon property:native_language ?z . ?z rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q175535,P103,c(Q34770))
action filter_type
action find
entity Q175535
relation P103
type Q34770
[ANSWER] is the mother tongue of Matt Damon
['Q175535', 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ?z WHERE { resource:Q175535 property:P103 ?z . ?z rdf:type ontology:Q34770 }
English
English is the mother tongue of Matt Damon
English
action filter_type
action find
entity Matt Damon
relation native language
type language
['Matt Damon', 'native language', {'concept': 'language'}]
SELECT DISTINCT ?z WHERE { resource:Matt_Damon property:native_language ?z . ?z rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q22212
Q34770
USER
And what about Lindsey Graham?
(Q22212,P103,c(Q34770))
action filter_type
action find
entity Q22212
relation P103
type Q34770
['Q22212', 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { resource:Q22212 property:P103 ?e . ?e rdf:type ontology:Q34770 }
Lindsey Graham
action filter_type
action find
entity Lindsey Graham
relation native language
type language
['Lindsey Graham', 'native language', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { resource:Lindsey_Graham property:native_language ?e . ?e rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q22212,P103,c(Q34770))
action filter_type
action find
entity Q22212
relation P103
type Q34770
[ANSWER]
['Q22212', 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { resource:Q22212 property:P103 ?e . ?e rdf:type ontology:Q34770 }
English
English
action filter_type
action find
entity Lindsey Graham
relation native language
type language
['Lindsey Graham', 'native language', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { resource:Lindsey_Graham property:native_language ?e . ?e rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1860 Q1053849
P361
Q5962346
USER
Is that language a component of virelai ?
(Q1860,P361,Q1053849)
action is_in
entity Q1053849
action find
entity Q1860
relation P361
['Q1860', 'P361', 'Q1053849']
ASK WHERE { resource:Q1860 property:P361 resource:Q1053849 }
English virelai
action is_in
entity virelai
action find
entity English
relation part of
['English', 'part of', 'virelai']
ASK WHERE { resource:English property:part_of resource:virelai }
[]
classification scheme
SYSTEM
NO
(Q1860,P361,Q1053849)
action is_in
entity Q1053849
action find
entity Q1860
relation P361
[ANSWER]
['Q1860', 'P361', 'Q1053849']
ASK WHERE { resource:Q1860 property:P361 resource:Q1053849 }
No
action is_in
entity virelai
action find
entity English
relation part of
['English', 'part of', 'virelai']
ASK WHERE { resource:English property:part_of resource:virelai }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1860 Q1127188
P361
Q5962346
USER
How many classification schemes are English or Development economics a portion of ?
(Q1860,P361,c(Q5962346)) (Q1127188,P361,c(Q5962346))
action count
action union
action filter_type
action find
entity Q1860
relation P361
type Q5962346
action filter_type
action find
entity Q1127188
relation P361
type Q5962346
['Q1860', 'P361', {'concept': 'Q5962346'}] ['Q1127188', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { { resource:Q1860 property:P361 ?c . ?c rdf:type ontology:Q5962346 } UNION { resource:Q1127188 property:P361 ?c . ?c rdf:type ontology:Q5962346 } }
English Development economics
action count
action union
action filter_type
action find
entity English
relation part of
type classification scheme
action filter_type
action find
entity Development economics
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}] ['Development economics', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { { resource:English property:part_of ?c . ?c rdf:type ontology:classification_scheme } UNION { resource:Development_economics property:part_of ?c . ?c rdf:type ontology:classification_scheme } }
[]
classification scheme
SYSTEM
2
Q1346342 Q5329170
(Q1860,P361,c(Q5962346)) (Q1127188,P361,c(Q5962346))
action count
action union
action filter_type
action find
entity Q1860
relation P361
type Q5962346
action filter_type
action find
entity Q1127188
relation P361
type Q5962346
[ANSWER]
['Q1860', 'P361', {'concept': 'Q5962346'}] ['Q1127188', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { { resource:Q1860 property:P361 ?c . ?c rdf:type ontology:Q5962346 } UNION { resource:Q1127188 property:P361 ?c . ?c rdf:type ontology:Q5962346 } }
Anglic languages Anglo-Frisian languages
2
action count
action union
action filter_type
action find
entity English
relation part of
type classification scheme
action filter_type
action find
entity Development economics
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}] ['Development economics', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { { resource:English property:part_of ?c . ?c rdf:type ontology:classification_scheme } UNION { resource:Development_economics property:part_of ?c . ?c rdf:type ontology:classification_scheme } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1112316 Q22212
P27 P17
Q15617994
USER
Which administrative territories are the native countriesof Lindsey Graham or are Jom-Bolok volcanic field located in ?
OR((Q22212,P27,c(Q15617994)), (Q1112316,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q22212
relation P27
action find
entity Q1112316
relation P17
type Q15617994
{'OR': [['Q22212', 'P27', {'concept': 'Q15617994'}], ['Q1112316', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q22212 property:P27 ?v } UNION { resource:Q1112316 property:P17 ?v } } . ?v rdf:type ontology:Q15617994 }
Jom-Bolok volcanic field Lindsey Graham
action filter_type
action union
action find
entity Lindsey Graham
relation country of citizenship
action find
entity Jom-Bolok volcanic field
relation country
type designation for an administrative territorial entity
{'OR': [['Lindsey Graham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jom-Bolok volcanic field', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Lindsey_Graham property:country_of_citizenship ?v } UNION { resource:Jom-Bolok_volcanic_field property:country ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q159
SYSTEM
United States of America, Russia
Q30 Q159
OR((Q22212,P27,c(Q15617994)), (Q1112316,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q22212
relation P27
action find
entity Q1112316
relation P17
type Q15617994
[ANSWERS] are the native countriesof Lindsey Graham or are Jom-Bolok volcanic field located in
{'OR': [['Q22212', 'P27', {'concept': 'Q15617994'}], ['Q1112316', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q22212 property:P27 ?v } UNION { resource:Q1112316 property:P17 ?v } } . ?v rdf:type ontology:Q15617994 }
United States of America Russia
United States of America and Russia are the native countriesof Lindsey Graham or are Jom-Bolok volcanic field located in
United States of America Russia
action filter_type
action union
action find
entity Lindsey Graham
relation country of citizenship
action find
entity Jom-Bolok volcanic field
relation country
type designation for an administrative territorial entity
{'OR': [['Lindsey Graham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jom-Bolok volcanic field', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Lindsey_Graham property:country_of_citizenship ?v } UNION { resource:Jom-Bolok_volcanic_field property:country ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with approximately 11 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 11
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?b ) WHERE { ?c property:P530 ?m . ?c rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?c } . FILTER ( ?b = 11 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 11
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?b ) WHERE { ?c property:diplomatic_relation ?m . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . FILTER ( ?b = 11 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q30 Q159 Q55
SYSTEM
United States of America, Russia, Netherlands
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q244 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q734 Q736 Q236 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q1049 Q189 Q843 Q842 Q1029 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1033 Q191 Q962 Q298 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q917 Q916 Q833 Q977 Q34020 Q574 Q79 Q77 Q858 Q878 Q948 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 11
[ANSWERS] have diplomatic relations with approximately 11 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?b ) WHERE { ?c property:P530 ?m . ?c rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?c } . FILTER ( ?b = 11 ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Barbados Finland Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Montenegro Malta San Marino Norway Somalia Senegal Ireland Hungary Sudan Iceland Pakistan Oman Mozambique Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Nigeria Estonia Benin Chile Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Bhutan Angola Malaysia Djibouti Niue East Timor Egypt Uruguay Syria United Arab Emirates Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
United States of America, Russia and Netherlands have diplomatic relations with approximately 11 administrative territories
United States of America Russia Netherlands
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 11
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?b ) WHERE { ?c property:diplomatic_relation ?m . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . FILTER ( ?b = 11 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q30 Q159 Q55
P530
Q1048835
USER
Who holds diplomatic relationship with United States of America, Russia and Netherlands ?
(Q30,P530,c(Q1048835)) (Q159,P530,c(Q1048835)) (Q55,P530,c(Q1048835))
action union
action filter_type
action find
entity Q30
relation P530
type Q1048835
action filter_type
action find
entity Q159
relation P530
type Q1048835
action filter_type
action find
entity Q55
relation P530
type Q1048835
['Q30', 'P530', {'concept': 'Q1048835'}] ['Q159', 'P530', {'concept': 'Q1048835'}] ['Q55', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?g ) { ( resource:Q30 ) ( resource:Q159 ) } . ?g property:P530 ?n }
United States of America Russia Netherlands
action union
action filter_type
action find
entity United States of America
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Russia
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Netherlands
relation diplomatic relation
type political territorial entity
['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Russia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?g ) { ( resource:United_States_of_America ) ( resource:Russia ) } . ?g property:diplomatic_relation ?n }
[]
political territorial entity
Q183 Q183 Q183
SYSTEM
Germany
Q183 Q408 Q16 Q183 Q408 Q16 Q408 Q183
(Q30,P530,c(Q1048835)) (Q159,P530,c(Q1048835)) (Q55,P530,c(Q1048835))
action union
action filter_type
action find
entity Q30
relation P530
type Q1048835
action filter_type
action find
entity Q159
relation P530
type Q1048835
action filter_type
action find
entity Q55
relation P530
type Q1048835
[ANSWER], [ANSWER] and [ANSWER] hold diplomatic relationship with United States of America, Russia and Netherlands
['Q30', 'P530', {'concept': 'Q1048835'}] ['Q159', 'P530', {'concept': 'Q1048835'}] ['Q55', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?g ) { ( resource:Q30 ) ( resource:Q159 ) } . ?g property:P530 ?n }
Germany Australia Canada Germany Australia Canada Australia Germany
Germany, Germany and Germany hold diplomatic relationship with United States of America, Russia and Netherlands
Germany Germany Germany
action union
action filter_type
action find
entity United States of America
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Russia
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Netherlands
relation diplomatic relation
type political territorial entity
['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Russia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?g ) { ( resource:United_States_of_America ) ( resource:Russia ) } . ?g property:diplomatic_relation ?n }
[]