Simple Question (Direct)
Simple Question
Q3821784
P21
Q290
USER
What is the sex of Josephine Barstow ?
(Q3821784,P21,c(Q290))
action filter_type
action find
entity Q3821784
relation P21
type Q290
['Q3821784', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q3821784 property:P21 ?l . ?l rdf:type ontology:Q290 }
Josephine Barstow
action filter_type
action find
entity Josephine Barstow
relation gender
type sex
['Josephine Barstow', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Josephine_Barstow property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q3821784,P21,c(Q290))
action filter_type
action find
entity Q3821784
relation P21
type Q290
The sex of Josephine Barstow is the [ANSWER]
['Q3821784', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q3821784 property:P21 ?l . ?l rdf:type ontology:Q290 }
female
The sex of Josephine Barstow is the female
female
action filter_type
action find
entity Josephine Barstow
relation gender
type sex
['Josephine Barstow', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Josephine_Barstow property:gender ?l . ?l rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3821784
P26
Q502895
USER
Which person is the life partner of that one ?
(c(Q502895),P26,Q6581072)
action filter_type
action find
entity Q3821784
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q6581072']
SELECT DISTINCT ?q WHERE { resource:Q3821784 property:P26 ?q . ?q rdf:type ontology:Q502895 }
Josephine Barstow
action filter_type
action find
entity Josephine Barstow
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'female']
SELECT DISTINCT ?q WHERE { resource:Josephine_Barstow property:spouse ?q . ?q rdf:type ontology:common_name }
[]
common name
Q975377
SYSTEM
Terry Hands
Q975377
(c(Q502895),P26,Q6581072)
action filter_type
action find
entity Q3821784
relation P26
type Q502895
[ANSWER] is the life partner of that one
[{'concept': 'Q502895'}, 'P26', 'Q6581072']
SELECT DISTINCT ?q WHERE { resource:Q3821784 property:P26 ?q . ?q rdf:type ontology:Q502895 }
Terry Hands
Terry Hands is the life partner of that one
Terry Hands
action filter_type
action find
entity Josephine Barstow
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'female']
SELECT DISTINCT ?q WHERE { resource:Josephine_Barstow property:spouse ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q975377
P22
Q502895
USER
Which person has that one as dad ?
(c(Q502895),P22,Q975377)
action filter_type
action find_reverse
entity Q975377
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q975377']
SELECT DISTINCT ?h WHERE { ?h property:P22 resource:Q975377 . ?h rdf:type ontology:Q502895 }
Terry Hands
action filter_type
action find_reverse
entity Terry Hands
relation father
type common name
[{'concept': 'common name'}, 'father', 'Terry Hands']
SELECT DISTINCT ?h WHERE { ?h property:father resource:Terry_Hands . ?h rdf:type ontology:common_name }
[]
common name
Q292760
SYSTEM
Marina Hands
Q292760
(c(Q502895),P22,Q975377)
action filter_type
action find_reverse
entity Q975377
relation P22
type Q502895
[ANSWER] has that one as dad
[{'concept': 'Q502895'}, 'P22', 'Q975377']
SELECT DISTINCT ?h WHERE { ?h property:P22 resource:Q975377 . ?h rdf:type ontology:Q502895 }
Marina Hands
Marina Hands has that one as dad
Marina Hands
action filter_type
action find_reverse
entity Terry Hands
relation father
type common name
[{'concept': 'common name'}, 'father', 'Terry Hands']
SELECT DISTINCT ?h WHERE { ?h property:father resource:Terry_Hands . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q292760
P1346
Q618779
USER
Which award was won by that person ?
(c(Q618779),P1346,Q292760)
action filter_type
action find_reverse
entity Q292760
relation P1346
type Q618779
[{'concept': 'Q618779'}, 'P1346', 'Q292760']
SELECT DISTINCT ?b WHERE { ?b property:P1346 resource:Q292760 . ?b rdf:type ontology:Q618779 }
Marina Hands
action filter_type
action find_reverse
entity Marina Hands
relation winner
type award
[{'concept': 'award'}, 'winner', 'Marina Hands']
SELECT DISTINCT ?b WHERE { ?b property:winner resource:Marina_Hands . ?b rdf:type ontology:award }
[]
award
Q24241
SYSTEM
César Award for Best Actress
Q24241
(c(Q618779),P1346,Q292760)
action filter_type
action find_reverse
entity Q292760
relation P1346
type Q618779
The [ANSWER] was won by that person
[{'concept': 'Q618779'}, 'P1346', 'Q292760']
SELECT DISTINCT ?b WHERE { ?b property:P1346 resource:Q292760 . ?b rdf:type ontology:Q618779 }
César Award for Best Actress
The César Award for Best Actress was won by that person
César Award for Best Actress
action filter_type
action find_reverse
entity Marina Hands
relation winner
type award
[{'concept': 'award'}, 'winner', 'Marina Hands']
SELECT DISTINCT ?b WHERE { ?b property:winner resource:Marina_Hands . ?b rdf:type ontology:award }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P169
Q502895 Q2424752 Q4830453
USER
How many people are the CEOs of around 1 products or business enterprises ?
(c(Q2424752)|c(Q4830453),P169,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q2424752
action find_reverse_tuple_counts
relation P169
type Q502895
type Q4830453
value 1
[[{'concept': 'Q2424752'}, {'concept': 'Q4830453'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?d ) WHERE { { ?l property:P169 ?x . ?x rdf:type ontology:Q502895 . ?l rdf:type ontology:Q2424752 } UNION { ?l property:P169 ?x . ?x rdf:type ontology:Q502895 . ?l rdf:type ontology:Q4830453 } } GROUP BY ?x } . FILTER ( ?d = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type product
action find_reverse_tuple_counts
relation chief executive officer
type common name
type business enterprise
value 1
[[{'concept': 'product'}, {'concept': 'business enterprise'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?d ) WHERE { { ?l property:chief_executive_officer ?x . ?x rdf:type ontology:common_name . ?l rdf:type ontology:product } UNION { ?l property:chief_executive_officer ?x . ?x rdf:type ontology:common_name . ?l rdf:type ontology:business_enterprise } } GROUP BY ?x } . FILTER ( ?d = 1 ) }
[]
common name product business enterprise
SYSTEM
45
Q19896671 Q19896679 Q23416738 Q4117176 Q26722512 Q55183 Q4980260 Q18342983 Q19665536 Q9000717 Q418622 Q1392181 Q8421760 Q19594969 Q5619555 Q346081 Q3318585 Q19664216 Q16193869 Q2324303 Q26903671 Q293679 Q5214356 Q472330 Q1608491 Q1692250 Q20962527 Q18233674 Q1223089 Q16195575 Q11875054 Q1680807 Q8992399 Q19854934 Q7608884 Q6307615 Q317521 Q5273200 Q20215432 Q4482287 Q2468051 Q17988783 Q3023213 Q6113311 Q22096796
(c(Q2424752)|c(Q4830453),P169,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q2424752
action find_reverse_tuple_counts
relation P169
type Q502895
type Q4830453
value 1
[ANSWER]
[[{'concept': 'Q2424752'}, {'concept': 'Q4830453'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?d ) WHERE { { ?l property:P169 ?x . ?x rdf:type ontology:Q502895 . ?l rdf:type ontology:Q2424752 } UNION { ?l property:P169 ?x . ?x rdf:type ontology:Q502895 . ?l rdf:type ontology:Q4830453 } } GROUP BY ?x } . FILTER ( ?d = 1 ) }
Tim Jenkins Zaw Thet Jason Barnard Robert Kotick Antoni Cases Susan Wojcicki Bryan Morrison Patrick Pouyanné Dan Siroker Lei Jun Akio Toyoda Muhtar Kent Jay Walder Ulrich Spiesshofer Gunvor Ulstein Christophe de Margerie Mohamed Hassan Bensalah Jason Kothari Sophie Turner Laing Jørgen Vig Knudstorp Shubham Badal Al-Waleed bin Talal Dan Schulman Howard Schultz Mike Davis Kjeld Kirk Kristiansen Alex Algard Wu Xiaohui Dieter von Holtzbrinck Muzzammil Hassan Lauri Kivinen James McNerney Yoshitaka Kitao Lincoln Leong Stephen Chan Julian Stone Elon Musk Dick Millman Scott Ernest Yuri Fedutinov Steve O'Rourke Haruna Yukawa Dennis Woodside Jack J. Pelton Lewis Von Thaer
45
action count
action approx
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type product
action find_reverse_tuple_counts
relation chief executive officer
type common name
type business enterprise
value 1
[[{'concept': 'product'}, {'concept': 'business enterprise'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?d ) WHERE { { ?l property:chief_executive_officer ?x . ?x rdf:type ontology:common_name . ?l rdf:type ontology:product } UNION { ?l property:chief_executive_officer ?x . ?x rdf:type ontology:common_name . ?l rdf:type ontology:business_enterprise } } GROUP BY ?x } . FILTER ( ?d = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1411
Q618779 Q838948 Q502895
USER
How many awards did around 165 works of art and people receive ?
(c(Q838948)|c(Q502895),P1411,c(Q618779))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1411
type Q618779
type Q838948
action find_reverse_tuple_counts
relation P1411
type Q618779
type Q502895
value 165
[[{'concept': 'Q838948'}, {'concept': 'Q502895'}], 'P1411', {'concept': 'Q618779'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?u ) WHERE { VALUES ( ?z ) { ( ontology:Q838948 ) ( ontology:Q502895 ) } . ?c rdf:type ?z } GROUP BY ?q } . FILTER ( ?u = 165 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation nominated for
type award
type work of art
action find_reverse_tuple_counts
relation nominated for
type award
type common name
value 165
[[{'concept': 'work of art'}, {'concept': 'common name'}], 'nominated for', {'concept': 'award'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?u ) WHERE { VALUES ( ?z ) { ( ontology:work_of_art ) ( ontology:common_name ) } . ?c rdf:type ?z } GROUP BY ?q } . FILTER ( ?u = 165 ) }
[]
award work of art common name
SYSTEM
15
Q24241 Q7821796 Q640374 Q1723064 Q1445521 Q645595 Q377293 Q1043985 Q1537996 Q627778 Q13449461 Q185299 Q1474410 Q24137 Q3993187
(c(Q838948)|c(Q502895),P1411,c(Q618779))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1411
type Q618779
type Q838948
action find_reverse_tuple_counts
relation P1411
type Q618779
type Q502895
value 165
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q502895'}], 'P1411', {'concept': 'Q618779'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?u ) WHERE { VALUES ( ?z ) { ( ontology:Q838948 ) ( ontology:Q502895 ) } . ?c rdf:type ?z } GROUP BY ?q } . FILTER ( ?u = 165 ) }
César Award for Best Actress Tony Award for Best Lighting Design Tony Award for Best Direction of a Play Tony Award for Best Actor in a Musical Tony Award for Best Actor in a Play César Award for Best Film Tony Award for Best Direction of a Musical Carnegie Medal Tony Award for Best Actress in a Musical Tony Award for Best Featured Actress in a Play Tony Award for Best Scenic Design Tony Award for Best Actress in a Play Tony Award for Best Featured Actor in a Play César Award for Best Director Tony Award for Best Costume Design
15
action count
action approx
action union
action find_reverse_tuple_counts
relation nominated for
type award
type work of art
action find_reverse_tuple_counts
relation nominated for
type award
type common name
value 165
[[{'concept': 'work of art'}, {'concept': 'common name'}], 'nominated for', {'concept': 'award'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?u ) WHERE { VALUES ( ?z ) { ( ontology:work_of_art ) ( ontology:common_name ) } . ?c rdf:type ?z } GROUP BY ?q } . FILTER ( ?u = 165 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q30 Q292760
P161 P495
Q838948
USER
Which works of art have Marina Hands as actor and originated in United States of America ?
AND((c(Q838948),P161,Q292760), (c(Q838948),P495,Q30))
action filter_type
action intersection
action find_reverse
entity Q292760
relation P161
action find_reverse
entity Q30
relation P495
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P161', 'Q292760'], [{'concept': 'Q838948'}, 'P495', 'Q30']]}
SELECT DISTINCT ?m WHERE { ?m property:P161 resource:Q292760 . ?m property:P495 resource:Q30 . ?m rdf:type ontology:Q838948 }
United States of America Marina Hands
action filter_type
action intersection
action find_reverse
entity Marina Hands
relation cast member
action find_reverse
entity United States of America
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'cast member', 'Marina Hands'], [{'concept': 'work of art'}, 'country of origin', 'United States of America']]}
SELECT DISTINCT ?m WHERE { ?m property:cast_member resource:Marina_Hands . ?m property:country_of_origin resource:United_States_of_America . ?m rdf:type ontology:work_of_art }
[]
work of art
Q472600
SYSTEM
The Diving Bell and the Butterfly
Q472600
AND((c(Q838948),P161,Q292760), (c(Q838948),P495,Q30))
action filter_type
action intersection
action find_reverse
entity Q292760
relation P161
action find_reverse
entity Q30
relation P495
type Q838948
[ANSWER] have Marina Hands as actor and originated in United States of America
{'AND': [[{'concept': 'Q838948'}, 'P161', 'Q292760'], [{'concept': 'Q838948'}, 'P495', 'Q30']]}
SELECT DISTINCT ?m WHERE { ?m property:P161 resource:Q292760 . ?m property:P495 resource:Q30 . ?m rdf:type ontology:Q838948 }
The Diving Bell and the Butterfly
The Diving Bell and the Butterfly have Marina Hands as actor and originated in United States of America
The Diving Bell and the Butterfly
action filter_type
action intersection
action find_reverse
entity Marina Hands
relation cast member
action find_reverse
entity United States of America
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'cast member', 'Marina Hands'], [{'concept': 'work of art'}, 'country of origin', 'United States of America']]}
SELECT DISTINCT ?m WHERE { ?m property:cast_member resource:Marina_Hands . ?m property:country_of_origin resource:United_States_of_America . ?m rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P1313
Q895526
USER
What is the authority organ held by United States of America ?
(Q30,P1313,c(Q895526))
action filter_type
action find
entity Q30
relation P1313
type Q895526
['Q30', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?b WHERE { resource:Q30 property:P1313 ?b . ?b rdf:type ontology:Q895526 }
United States of America
action filter_type
action find
entity United States of America
relation office held by head of government
type authority organ
['United States of America', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?b WHERE { resource:United_States_of_America property:office_held_by_head_of_government ?b . ?b rdf:type ontology:authority_organ }
[]
authority organ
Q11696
SYSTEM
President of the United States of America
Q11696
(Q30,P1313,c(Q895526))
action filter_type
action find
entity Q30
relation P1313
type Q895526
The authority organ held by United States of America is the [ANSWER]
['Q30', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?b WHERE { resource:Q30 property:P1313 ?b . ?b rdf:type ontology:Q895526 }
President of the United States of America
The authority organ held by United States of America is the President of the United States of America
President of the United States of America
action filter_type
action find
entity United States of America
relation office held by head of government
type authority organ
['United States of America', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?b WHERE { resource:United_States_of_America property:office_held_by_head_of_government ?b . ?b rdf:type ontology:authority_organ }
[]