Simple Question (Direct)
Simple Question
Q1567345
P840
Q56061
USER
Which narrative location is The Out-of-Towners set in ?
(Q1567345,P840,c(Q56061))
action filter_type
action find
entity Q1567345
relation P840
type Q56061
['Q1567345', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . resource:Q1567345 property:P840 ?b }
The Out-of-Towners
action filter_type
action find
entity The Out-of-Towners
relation narrative location
type administrative territorial entity
['The Out-of-Towners', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . resource:The_Out-of-Towners property:narrative_location ?b }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(Q1567345,P840,c(Q56061))
action filter_type
action find
entity Q1567345
relation P840
type Q56061
[ANSWER]
['Q1567345', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . resource:Q1567345 property:P840 ?b }
New York City
New York City
action filter_type
action find
entity The Out-of-Towners
relation narrative location
type administrative territorial entity
['The Out-of-Towners', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . resource:The_Out-of-Towners property:narrative_location ?b }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1567345
P57
Q502895
USER
Who directed that work of art ?
(Q60,P57,c(Q502895))
action filter_type
action find
entity Q1567345
relation P57
type Q502895
['Q60', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q1567345 property:P57 ?j . ?j rdf:type ontology:Q502895 }
The Out-of-Towners
action filter_type
action find
entity The Out-of-Towners
relation director
type common name
['New York City', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:The_Out-of-Towners property:director ?j . ?j rdf:type ontology:common_name }
[]
common name
Q455043
SYSTEM
Arthur Hiller
Q455043
(Q60,P57,c(Q502895))
action filter_type
action find
entity Q1567345
relation P57
type Q502895
[ANSWER] directed that work of art
['Q60', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q1567345 property:P57 ?j . ?j rdf:type ontology:Q502895 }
Arthur Hiller
Arthur Hiller directed that work of art
Arthur Hiller
action filter_type
action find
entity The Out-of-Towners
relation director
type common name
['New York City', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:The_Out-of-Towners property:director ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q455043
P161
Q838948
USER
Which work of art stars that person as actor ?
(c(Q838948),P161,Q455043)
action filter_type
action find_reverse
entity Q455043
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q455043']
SELECT DISTINCT ?f WHERE { ?f property:P161 resource:Q455043 . ?f rdf:type ontology:Q838948 }
Arthur Hiller
action filter_type
action find_reverse
entity Arthur Hiller
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Arthur Hiller']
SELECT DISTINCT ?f WHERE { ?f property:cast_member resource:Arthur_Hiller . ?f rdf:type ontology:work_of_art }
[]
work of art
Q3492804
SYSTEM
Speakeasy
Q3492804
(c(Q838948),P161,Q455043)
action filter_type
action find_reverse
entity Q455043
relation P161
type Q838948
[ANSWER] stars that person as actor
[{'concept': 'Q838948'}, 'P161', 'Q455043']
SELECT DISTINCT ?f WHERE { ?f property:P161 resource:Q455043 . ?f rdf:type ontology:Q838948 }
Speakeasy
Speakeasy stars that person as actor
Speakeasy
action filter_type
action find_reverse
entity Arthur Hiller
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Arthur Hiller']
SELECT DISTINCT ?f WHERE { ?f property:cast_member resource:Arthur_Hiller . ?f rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P161
Q502895
USER
How many people were casted in that work of art ?
(Q3492804,P161,c(Q502895))
action count
action filter_type
action find
entity Q3492804
relation P161
type Q502895
['Q3492804', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { resource:Q3492804 property:P161 ?q . ?q rdf:type ontology:Q502895 }
action count
action filter_type
action find
entity Speakeasy
relation cast member
type common name
['Speakeasy', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { resource:Speakeasy property:cast_member ?q . ?q rdf:type ontology:common_name }
[]
common name
SYSTEM
8
Q349857 Q310318 Q241686 Q2262850 Q459638 Q729618 Q259663 Q455043
(Q3492804,P161,c(Q502895))
action count
action filter_type
action find
entity Q3492804
relation P161
type Q502895
[ANSWER]
['Q3492804', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { resource:Q3492804 property:P161 ?q . ?q rdf:type ontology:Q502895 }
Christopher McDonald David Strathairn Lake Bell Michael Bacall Stacy Edwards Nicky Katt Julianne Nicholson Arthur Hiller
8
action count
action filter_type
action find
entity Speakeasy
relation cast member
type common name
['Speakeasy', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { resource:Speakeasy property:cast_member ?q . ?q rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P169
Q502895 Q874405 Q46970
USER
Which people are the chief executive officer of approximately 1 social groups or airlines ?
(c(Q874405)|c(Q46970),P169,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q874405
action find_reverse_tuple_counts
relation P169
type Q502895
type Q46970
value 1
[[{'concept': 'Q874405'}, {'concept': 'Q46970'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) ?u WHERE { { ?u rdf:type ontology:Q502895 . ?r rdf:type ontology:Q874405 . ?r property:P169 ?u } UNION { ?r property:P169 ?u . ?u rdf:type ontology:Q502895 . ?r rdf:type ontology:Q46970 } } GROUP BY ?u } . FILTER ( ?c = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type social group
action find_reverse_tuple_counts
relation chief executive officer
type common name
type airline
value 1
[[{'concept': 'social group'}, {'concept': 'airline'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) ?u WHERE { { ?u rdf:type ontology:common_name . ?r rdf:type ontology:social_group . ?r property:chief_executive_officer ?u } UNION { ?r property:chief_executive_officer ?u . ?u rdf:type ontology:common_name . ?r rdf:type ontology:airline } } GROUP BY ?u } . FILTER ( ?c = 1 ) }
[]
common name social group airline
Q103473 Q26908223 Q4487
SYSTEM
Georg August Zenker, Alireza Salehi Nejad, Federico Gamboa
Q21000395 Q15966868 Q1929047 Q4487 Q597242 Q4707007 Q103473 Q16163305 Q15293536 Q16876158 Q5231122 Q23048203 Q8051043 Q5704388 Q3185348 Q500976 Q26908223 Q7456439 Q6273164 Q23759747 Q4655570 Q4935260 Q96270 Q18091304 Q776008 Q17114394 Q19878836
(c(Q874405)|c(Q46970),P169,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q874405
action find_reverse_tuple_counts
relation P169
type Q502895
type Q46970
value 1
[ANSWERS] are the chief executive officer of approximately 1 social groups or airlines
[[{'concept': 'Q874405'}, {'concept': 'Q46970'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) ?u WHERE { { ?u rdf:type ontology:Q502895 . ?r rdf:type ontology:Q874405 . ?r property:P169 ?u } UNION { ?r property:P169 ?u . ?u rdf:type ontology:Q502895 . ?r rdf:type ontology:Q46970 } } GROUP BY ?u } . FILTER ( ?c = 1 ) }
Franz Borgias Mayer David Schraven Michael Rockenschaub Federico Gamboa Michael O'Leary Alan Joyce Georg August Zenker Albert Royo i Mariné Martyn Harrow Ryan Merkley David Barger Youssef al-Raissouni Yechiel Eckstein Helga Stephenson Joseph Mayer Andreas Treichl Alireza Salehi Nejad Seth Berkley Jonathan Ornstein Alisa Miller Christine Loh Bobby Koch Richard Kund Victor Galasyuk Nasser Al-Khelaifi Randi S. Øgrey Colin Seery
Georg August Zenker, Alireza Salehi Nejad and Federico Gamboa are the chief executive officer of approximately 1 social groups or airlines
Georg August Zenker Alireza Salehi Nejad Federico Gamboa
action approx
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type social group
action find_reverse_tuple_counts
relation chief executive officer
type common name
type airline
value 1
[[{'concept': 'social group'}, {'concept': 'airline'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) ?u WHERE { { ?u rdf:type ontology:common_name . ?r rdf:type ontology:social_group . ?r property:chief_executive_officer ?u } UNION { ?r property:chief_executive_officer ?u . ?u rdf:type ontology:common_name . ?r rdf:type ontology:airline } } GROUP BY ?u } . FILTER ( ?c = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q12684050 Q3492804
P495
Q15617994
USER
Which administrative territories are the countries of origin of Speakeasy or Bittersweet ?
OR((Q3492804,P495,c(Q15617994)), (Q12684050,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q3492804
relation P495
action find
entity Q12684050
relation P495
type Q15617994
{'OR': [['Q3492804', 'P495', {'concept': 'Q15617994'}], ['Q12684050', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?m ) { ( resource:Q3492804 ) ( resource:Q12684050 ) } . ?m property:P495 ?b } . ?b rdf:type ontology:Q15617994 }
Bittersweet Speakeasy
action filter_type
action union
action find
entity Speakeasy
relation country of origin
action find
entity Bittersweet
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Speakeasy', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Bittersweet', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?m ) { ( resource:Speakeasy ) ( resource:Bittersweet ) } . ?m property:country_of_origin ?b } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q833 Q30
SYSTEM
Malaysia, United States of America
Q833 Q30
OR((Q3492804,P495,c(Q15617994)), (Q12684050,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q3492804
relation P495
action find
entity Q12684050
relation P495
type Q15617994
[ANSWERS] are the countries of origin of Speakeasy or Bittersweet
{'OR': [['Q3492804', 'P495', {'concept': 'Q15617994'}], ['Q12684050', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?m ) { ( resource:Q3492804 ) ( resource:Q12684050 ) } . ?m property:P495 ?b } . ?b rdf:type ontology:Q15617994 }
Malaysia United States of America
Malaysia and United States of America are the countries of origin of Speakeasy or Bittersweet
Malaysia United States of America
action filter_type
action union
action find
entity Speakeasy
relation country of origin
action find
entity Bittersweet
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Speakeasy', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Bittersweet', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?m ) { ( resource:Speakeasy ) ( resource:Bittersweet ) } . ?m property:country_of_origin ?b } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2342494 Q201658
USER
How many administrative territories are the countries of origin of greater number of collectables and film genres than that administrative territory ?
(c(Q2342494)|c(Q201658),P495,c(Q15617994))
[[{'concept': 'Q2342494'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?k ) { ( ?z ) ( ?x ) } . ?k property:P495 ?y } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q201658 }
[[{'concept': 'collectable'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?k ) { ( ?z ) ( ?x ) } . ?k property:country_of_origin ?y } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:film_genre }
[]
designation for an administrative territorial entity collectable film genre
Comparative|Count over More/Less|Mult. entity type|Clarification
Q30
SYSTEM
Did you mean United States of America ?
(c(Q2342494)|c(Q201658),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?k ) { ( ?z ) ( ?x ) } . ?k property:P495 ?y } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q201658 }
Did you mean United States of America ?
United States of America
[[{'concept': 'collectable'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?k ) { ( ?z ) ( ?x ) } . ?k property:country_of_origin ?y } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:film_genre }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Malaysia. Could you tell me the answer for that?
(c(Q2342494)|c(Q201658),P495,c(Q15617994))
Q833
[[{'concept': 'Q2342494'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'collectable'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
55
Q801 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q837 Q252 Q399 Q258 Q45 Q159 Q43 Q41 Q155 Q794 Q884 Q241 Q33 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q854 Q230 Q20 Q1041 Q27 Q28 Q189 Q843 Q224 Q222 Q96 Q17 Q902 Q1036 Q974 Q1033 Q191 Q298 Q114 Q212 Q213 Q215 Q218 Q79 Q77 Q29
(c(Q2342494)|c(Q201658),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q201658 }
Israel Peru India Argentina France Netherlands United Kingdom People's Republic of China Nepal Indonesia Armenia South Africa Portugal Russia Turkey Greece Brazil Iran South Korea Cuba Finland Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia Sri Lanka Georgia Norway Senegal Ireland Hungary Iceland Pakistan Croatia Albania Mexico Japan Bangladesh Uganda Democratic Republic of the Congo Nigeria Estonia Chile Kenya Ukraine Czech Republic Slovenia Romania Egypt Uruguay Spain
55
[[{'concept': 'collectable'}, {'concept': 'film genre'}], '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:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:film_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q833
P1001
Q820655
USER
Which statute has control over the jurisdiction of Malaysia ?
(c(Q820655),P1001,Q833)
action filter_type
action find_reverse
entity Q833
relation P1001
type Q820655
[{'concept': 'Q820655'}, 'P1001', 'Q833']
SELECT DISTINCT ?o WHERE { ?o property:P1001 resource:Q833 . ?o rdf:type ontology:Q820655 }
Malaysia
action filter_type
action find_reverse
entity Malaysia
relation applies to jurisdiction
type statute
[{'concept': 'statute'}, 'applies to jurisdiction', 'Malaysia']
SELECT DISTINCT ?o WHERE { ?o property:applies_to_jurisdiction resource:Malaysia . ?o rdf:type ontology:statute }
[]
statute
Q26910843
SYSTEM
Anti-Money Laundering, Anti-Terrorism Financing and Proceeds of Unlawful Activities Act 2001
Q26910843
(c(Q820655),P1001,Q833)
action filter_type
action find_reverse
entity Q833
relation P1001
type Q820655
[ANSWER] has control over the jurisdiction of Malaysia
[{'concept': 'Q820655'}, 'P1001', 'Q833']
SELECT DISTINCT ?o WHERE { ?o property:P1001 resource:Q833 . ?o rdf:type ontology:Q820655 }
Anti-Money Laundering, Anti-Terrorism Financing and Proceeds of Unlawful Activities Act 2001
Anti-Money Laundering, Anti-Terrorism Financing and Proceeds of Unlawful Activities Act 2001 has control over the jurisdiction of Malaysia
Anti-Money Laundering, Anti-Terrorism Financing and Proceeds of Unlawful Activities Act 2001
action filter_type
action find_reverse
entity Malaysia
relation applies to jurisdiction
type statute
[{'concept': 'statute'}, 'applies to jurisdiction', 'Malaysia']
SELECT DISTINCT ?o WHERE { ?o property:applies_to_jurisdiction resource:Malaysia . ?o rdf:type ontology:statute }
[]