Simple Question (Direct)
Simple Question
Q2357797
P54
Q12973014
USER
What is Stu Nahan a member of ?
(Q2357797,P54,c(Q12973014))
action filter_type
action find
entity Q2357797
relation P54
type Q12973014
['Q2357797', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?c WHERE { resource:Q2357797 property:P54 ?c . ?c rdf:type ontology:Q12973014 }
Stu Nahan
action filter_type
action find
entity Stu Nahan
relation member of sports team
type sports team
['Stu Nahan', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?c WHERE { resource:Stu_Nahan property:member_of_sports_team ?c . ?c rdf:type ontology:sports_team }
[]
sports team
Q203384
SYSTEM
Toronto Maple Leafs
Q203384
(Q2357797,P54,c(Q12973014))
action filter_type
action find
entity Q2357797
relation P54
type Q12973014
Stu Nahan a member of is the [ANSWER]
['Q2357797', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?c WHERE { resource:Q2357797 property:P54 ?c . ?c rdf:type ontology:Q12973014 }
Toronto Maple Leafs
Stu Nahan a member of is the Toronto Maple Leafs
Toronto Maple Leafs
action filter_type
action find
entity Stu Nahan
relation member of sports team
type sports team
['Stu Nahan', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?c WHERE { resource:Stu_Nahan property:member_of_sports_team ?c . ?c rdf:type ontology:sports_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2357797
P161
Q15416
USER
Which television programs have Stu Nahan in their star cast ?
(c(Q15416),P161,Q2357797)
action filter_type
action find_reverse
entity Q2357797
relation P161
type Q15416
[{'concept': 'Q15416'}, 'P161', 'Q2357797']
SELECT DISTINCT ?a WHERE { ?a property:P161 resource:Q2357797 . ?a rdf:type ontology:Q15416 }
Stu Nahan
action filter_type
action find_reverse
entity Stu Nahan
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'Stu Nahan']
SELECT DISTINCT ?a WHERE { ?a property:cast_member resource:Stu_Nahan . ?a rdf:type ontology:television_program }
[]
television program
Q6954071 Q608905
SYSTEM
NHL on CBS, Brian's Song
Q6954071 Q608905
(c(Q15416),P161,Q2357797)
action filter_type
action find_reverse
entity Q2357797
relation P161
type Q15416
[ANSWERS] have Stu Nahan in their star cast
[{'concept': 'Q15416'}, 'P161', 'Q2357797']
SELECT DISTINCT ?a WHERE { ?a property:P161 resource:Q2357797 . ?a rdf:type ontology:Q15416 }
NHL on CBS Brian's Song
NHL on CBS and Brian's Song have Stu Nahan in their star cast
NHL on CBS Brian's Song
action filter_type
action find_reverse
entity Stu Nahan
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'Stu Nahan']
SELECT DISTINCT ?a WHERE { ?a property:cast_member resource:Stu_Nahan . ?a rdf:type ontology:television_program }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6954071
P449
Q4830453
USER
Which business enterprise is the original network that television program was aired on ?
(Q6954071,P449,c(Q4830453))
action filter_type
action find
entity Q6954071
relation P449
type Q4830453
['Q6954071', 'P449', {'concept': 'Q4830453'}]
SELECT DISTINCT ?x WHERE { resource:Q6954071 property:P449 ?x . ?x rdf:type ontology:Q4830453 }
NHL on CBS
action filter_type
action find
entity NHL on CBS
relation original network
type business enterprise
['NHL on CBS', 'original network', {'concept': 'business enterprise'}]
SELECT DISTINCT ?x WHERE { resource:NHL_on_CBS property:original_network ?x . ?x rdf:type ontology:business_enterprise }
[]
business enterprise
Clarification for simple ques.
Q608905
SYSTEM
Did you mean Brian's Song ?
Q6954071 Q608905
(Q6954071,P449,c(Q4830453)) (Q608905,P449,c(Q4830453))
[ANSWER]
['Q6954071', 'P449', {'concept': 'Q4830453'}] ['Q608905', 'P449', {'concept': 'Q4830453'}]
SELECT DISTINCT ?x WHERE { resource:Q6954071 property:P449 ?x . ?x rdf:type ontology:Q4830453 }
NHL on CBS Brian's Song
Did you mean Brian's Song ?
Brian's Song
['NHL on CBS', 'original network', {'concept': 'business enterprise'}] ["Brian's Song", 'original network', {'concept': 'business enterprise'}]
SELECT DISTINCT ?x WHERE { resource:NHL_on_CBS property:original_network ?x . ?x rdf:type ontology:business_enterprise }
[]
Simple Question (Coreferenced)
USER
No, I meant NHL on CBS. Could you tell me the answer for that?
(Q6954071,P449,c(Q4830453))
Q6954071
['Q6954071', 'P449', {'concept': 'Q4830453'}]
['NHL on CBS', 'original network', {'concept': 'business enterprise'}]
[]
Q43380
SYSTEM
CBS
Q43380
(Q6954071,P449,c(Q4830453))
action filter_type
action find
entity Q6954071
relation P449
type Q4830453
[ANSWER] is the original network that television program was aired on
['Q6954071', 'P449', {'concept': 'Q4830453'}]
SELECT DISTINCT ?x WHERE { resource:Q6954071 property:P449 ?x . ?x rdf:type ontology:Q4830453 }
CBS
CBS is the original network that television program was aired on
CBS
action filter_type
action find
entity NHL on CBS
relation original network
type business enterprise
['NHL on CBS', 'original network', {'concept': 'business enterprise'}]
SELECT DISTINCT ?x WHERE { resource:NHL_on_CBS property:original_network ?x . ?x rdf:type ontology:business_enterprise }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P355
Q4830453 Q740752 Q4830453
USER
Which business enterprises are subsidiaries of exactly 1 transport companies or business enterprises ?
(c(Q740752)|c(Q4830453),P355,c(Q4830453))
action equal
action union
action find_reverse_tuple_counts
relation P355
type Q4830453
type Q740752
action find_reverse_tuple_counts
relation P355
type Q4830453
type Q4830453
value 1
[[{'concept': 'Q740752'}, {'concept': 'Q4830453'}], 'P355', {'concept': 'Q4830453'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?r = 1 ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) ?w WHERE { VALUES ( ?q ) { ( ontology:Q740752 ) ( ontology:Q4830453 ) } . ?u rdf:type ?q } GROUP BY ?w } }
action equal
action union
action find_reverse_tuple_counts
relation subsidiary
type business enterprise
type transport company
action find_reverse_tuple_counts
relation subsidiary
type business enterprise
type business enterprise
value 1
[[{'concept': 'transport company'}, {'concept': 'business enterprise'}], 'subsidiary', {'concept': 'business enterprise'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?r = 1 ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) ?w WHERE { VALUES ( ?q ) { ( ontology:transport_company ) ( ontology:business_enterprise ) } . ?u rdf:type ?q } GROUP BY ?w } }
[]
business enterprise transport company business enterprise
Q908916 Q191615 Q271812
SYSTEM
Grandi Stazioni, Pizza Hut, Ducati
Q1085106 Q864910 Q18162669 Q191615 Q928831 Q11228051 Q908916 Q1201531 Q7497366 Q3277439 Q24230849 Q744800 Q10687909 Q795324 Q7160591 Q19515735 Q22813239 Q8139691 Q1922100 Q734663 Q2378642 Q6604030 Q11308745 Q11308747 Q2138491 Q11207295 Q11243694 Q271812 Q1180332 Q5474362 Q3091339 Q567000 Q12300146 Q21857804 Q59187 Q2027177 Q374451 Q1420724 Q151378 Q318672 Q4354860 Q22813244 Q22980120 Q1881443 Q8013425 Q19604369 Q908436 Q6883057 Q822314 Q12374454 Q11463109 Q8013770 Q909032 Q48592 Q22813243
(c(Q740752)|c(Q4830453),P355,c(Q4830453))
action equal
action union
action find_reverse_tuple_counts
relation P355
type Q4830453
type Q740752
action find_reverse_tuple_counts
relation P355
type Q4830453
type Q4830453
value 1
[ANSWERS] are subsidiaries of exactly 1 transport companies or business enterprises
[[{'concept': 'Q740752'}, {'concept': 'Q4830453'}], 'P355', {'concept': 'Q4830453'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?r = 1 ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) ?w WHERE { VALUES ( ?q ) { ( ontology:Q740752 ) ( ontology:Q4830453 ) } . ?u rdf:type ?q } GROUP BY ?w } }
Centostazioni Nippon Television SAIC Motor UK Pizza Hut Seoul Broadcasting System KNT-CT Holdings Grandi Stazioni Detroit Diesel Shine Group The Co-operative Food MyBus Fuji Television Säffle Karosseri Boeing Defense, Space & Security Pegasus Software James Villa Holidays FTI Consulting EMEA BS Japan Merseyrail TV Tokyo Thomas Built Buses Moreshet CS One Ten CS Nippon RVN Regionalverkehr Niederrhein Helio Aircraft Company SMFG Card & Credit Ducati MÁV START Zrt. Foundation Systems Fyffes Chiltern Railways Aabenraa Karrosseri Sct. Oluf Vauxhall Pedigree Petfoods Boeing Helicopters Freightliner Trucks BVR Busverkehr Rheinland Abellio AVIC I FTI Consulting APAC Kadeau Bornholm MG Motor BS Nippon Columbus Nova TV Asahi Mitsubishi Fuso Truck of America, Inc. Sony Pictures Entertainment S-Bahn Berlin GmbH Odakyu Hakone Holdings BS Asahi Nippon Broadcasting System Noma FTI Consulting LATAM
Grandi Stazioni, Pizza Hut and Ducati are subsidiaries of exactly 1 transport companies or business enterprises
Grandi Stazioni Pizza Hut Ducati
action equal
action union
action find_reverse_tuple_counts
relation subsidiary
type business enterprise
type transport company
action find_reverse_tuple_counts
relation subsidiary
type business enterprise
type business enterprise
value 1
[[{'concept': 'transport company'}, {'concept': 'business enterprise'}], 'subsidiary', {'concept': 'business enterprise'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?r = 1 ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) ?w WHERE { VALUES ( ?q ) { ( ontology:transport_company ) ( ontology:business_enterprise ) } . ?u rdf:type ?q } GROUP BY ?w } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q43380
P166
Q4220917
USER
How many film awards were awarded to CBS ?
(Q43380,P166,c(Q4220917))
action count
action filter_type
action find
entity Q43380
relation P166
type Q4220917
['Q43380', 'P166', {'concept': 'Q4220917'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { ?n rdf:type ontology:Q4220917 . resource:Q43380 property:P166 ?n }
CBS
action count
action filter_type
action find
entity CBS
relation award received
type film award
['CBS', 'award received', {'concept': 'film award'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { ?n rdf:type ontology:film_award . resource:CBS property:award_received ?n }
[]
film award
SYSTEM
3
Q3025728 Q3473891 Q7426020
(Q43380,P166,c(Q4220917))
action count
action filter_type
action find
entity Q43380
relation P166
type Q4220917
[ANSWER]
['Q43380', 'P166', {'concept': 'Q4220917'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { ?n rdf:type ontology:Q4220917 . resource:Q43380 property:P166 ?n }
Satellite Award for Best Television Series – Drama Satellite Award for Best Television Series – Musical or Comedy Satellite Award for Best Miniseries
3
action count
action filter_type
action find
entity CBS
relation award received
type film award
['CBS', 'award received', {'concept': 'film award'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { ?n rdf:type ontology:film_award . resource:CBS property:award_received ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q43380
P449
Q838948
USER
Which works of art were the works of art that were originally telecasted by that business enterprise ?
action filter_type
action find_reverse
entity Q43380
relation P449
type Q838948
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q838948 . ?l property:P449 resource:Q43380 }
CBS
action filter_type
action find_reverse
entity CBS
relation original network
type work of art
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:work_of_art . ?l property:original_network resource:CBS }
[]
work of art
Q557990 Q8028399 Q217585
SYSTEM
Emil i Lönneberga, Witness for the Prosecution, Peter and Paul
Q2550156 Q3989988 Q8028399 Q8057200 Q5906846 Q4193660 Q674155 Q596994 Q5084610 Q7857439 Q557990 Q217585 Q4598006
action filter_type
action find_reverse
entity Q43380
relation P449
type Q838948
[ANSWERS] were the works of art that were originally telecasted by that business enterprise
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q838948 . ?l property:P449 resource:Q43380 }
What Have We Learned, Charlie Brown? The Whistler Witness for the Prosecution You Don't Look 40, Charlie Brown Horton Hears a Who! Golden Years The Blue and the Gray It's the Great Pumpkin, Charlie Brown Charlie Brown and Charles Schulz Twas the Night Before Christmas Emil i Lönneberga Peter and Paul 2000 Year Old Man
Emil i Lönneberga, Witness for the Prosecution and Peter and Paul were the works of art that were originally telecasted by that business enterprise
Emil i Lönneberga Witness for the Prosecution Peter and Paul
action filter_type
action find_reverse
entity CBS
relation original network
type work of art
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:work_of_art . ?l property:original_network resource:CBS }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q498664 Q608905
P161
Q502895
USER
Which people were casted in Brian's Song or Alphas ?
OR((Q608905,P161,c(Q502895)), (Q498664,P161,c(Q502895)))
action filter_type
action union
action find
entity Q608905
relation P161
action find
entity Q498664
relation P161
type Q502895
{'OR': [['Q608905', 'P161', {'concept': 'Q502895'}], ['Q498664', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . { { resource:Q608905 property:P161 ?q } UNION { resource:Q498664 property:P161 ?q } } }
Alphas Brian's Song
action filter_type
action union
action find
entity Brian's Song
relation cast member
action find
entity Alphas
relation cast member
type common name
{'OR': [["Brian's Song", 'cast member', {'concept': 'common name'}], ['Alphas', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . { { resource:Brian's_Song property:cast_member ?q } UNION { resource:Alphas property:cast_member ?q } } }
[]
common name
Q310318 Q372497 Q2357797 Q715511 Q456187 Q358345 Q95043 Q901137 Q659962 Q45966
SYSTEM
Some of them are David Strathairn, Bernie Casey, Stu Nahan, Dick Butkus, Shelley Fabares, Billy Dee Williams, James Caan, Warren Christie, David Huddleston, Erin Way
Q95043 Q358345 Q310318 Q2357797 Q1243844 Q901137 Q373968 Q45966 Q372497 Q659962 Q2019971 Q456187 Q715511
OR((Q608905,P161,c(Q502895)), (Q498664,P161,c(Q502895)))
action filter_type
action union
action find
entity Q608905
relation P161
action find
entity Q498664
relation P161
type Q502895
[ANSWERS] were casted in Brian's Song or Alphas
{'OR': [['Q608905', 'P161', {'concept': 'Q502895'}], ['Q498664', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . { { resource:Q608905 property:P161 ?q } UNION { resource:Q498664 property:P161 ?q } } }
James Caan Billy Dee Williams David Strathairn Stu Nahan Doreen Lang Warren Christie Jack Warden Erin Way Bernie Casey David Huddleston Laura Mennell Shelley Fabares Dick Butkus
David Strathairn, Bernie Casey, Stu Nahan, Dick Butkus, Shelley Fabares, Billy Dee Williams, James Caan, Warren Christie, David Huddleston and Erin Way were casted in Brian's Song or Alphas
David Strathairn Bernie Casey Stu Nahan Dick Butkus Shelley Fabares Billy Dee Williams James Caan Warren Christie David Huddleston Erin Way
action filter_type
action union
action find
entity Brian's Song
relation cast member
action find
entity Alphas
relation cast member
type common name
{'OR': [["Brian's Song", 'cast member', {'concept': 'common name'}], ['Alphas', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . { { resource:Brian's_Song property:cast_member ?q } UNION { resource:Alphas property:cast_member ?q } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q838948
USER
How many works of art did around 30 people do the dubbing for ?
(c(Q838948),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q838948
type Q502895
value 30
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?m ) WHERE { ?p property:P725 ?y . ?p rdf:type ontology:Q838948 . ?y rdf:type ontology:Q502895 } GROUP BY ?p } . FILTER ( ?m = 30 ) }
action count
action approx
action find_tuple_counts
relation voice actor
type work of art
type common name
value 30
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?m ) WHERE { ?p property:voice_actor ?y . ?p rdf:type ontology:work_of_art . ?y rdf:type ontology:common_name } GROUP BY ?p } . FILTER ( ?m = 30 ) }
[]
common name work of art
SYSTEM
3
Q477365 Q16857406 Q19263748
(c(Q838948),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q838948
type Q502895
value 30
[ANSWER]
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?m ) WHERE { ?p property:P725 ?y . ?p rdf:type ontology:Q838948 . ?y rdf:type ontology:Q502895 } GROUP BY ?p } . FILTER ( ?m = 30 ) }
101 Dalmatians II: Patch's London Adventure The Jungle Book The Anthem of the Heart
3
action count
action approx
action find_tuple_counts
relation voice actor
type work of art
type common name
value 30
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?m ) WHERE { ?p property:voice_actor ?y . ?p rdf:type ontology:work_of_art . ?y rdf:type ontology:common_name } GROUP BY ?p } . FILTER ( ?m = 30 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q14710683 Q271812
P1408 P740
Q56061
USER
Which administrative territories are the locations of formation of Ducati or are KMVK licensed to broadcast to ?
OR((Q271812,P740,c(Q56061)), (Q14710683,P1408,c(Q56061)))
action filter_type
action union
action find
entity Q271812
relation P740
action find
entity Q14710683
relation P1408
type Q56061
{'OR': [['Q271812', 'P740', {'concept': 'Q56061'}], ['Q14710683', 'P1408', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q14710683 property:P1408 ?b } UNION { resource:Q271812 property:P740 ?b } } . ?b rdf:type ontology:Q56061 }
KMVK Ducati
action filter_type
action union
action find
entity Ducati
relation location of formation
action find
entity KMVK
relation licensed to broadcast to
type administrative territorial entity
{'OR': [['Ducati', 'location of formation', {'concept': 'administrative territorial entity'}], ['KMVK', 'licensed to broadcast to', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:KMVK property:licensed_to_broadcast_to ?b } UNION { resource:Ducati property:location_of_formation ?b } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q16558 Q1891
SYSTEM
Fort Worth, Bologna
Q16558 Q1891
OR((Q271812,P740,c(Q56061)), (Q14710683,P1408,c(Q56061)))
action filter_type
action union
action find
entity Q271812
relation P740
action find
entity Q14710683
relation P1408
type Q56061
[ANSWERS] are the locations of formation of Ducati or are KMVK licensed to broadcast to
{'OR': [['Q271812', 'P740', {'concept': 'Q56061'}], ['Q14710683', 'P1408', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q14710683 property:P1408 ?b } UNION { resource:Q271812 property:P740 ?b } } . ?b rdf:type ontology:Q56061 }
Fort Worth Bologna
Fort Worth and Bologna are the locations of formation of Ducati or are KMVK licensed to broadcast to
Fort Worth Bologna
action filter_type
action union
action find
entity Ducati
relation location of formation
action find
entity KMVK
relation licensed to broadcast to
type administrative territorial entity
{'OR': [['Ducati', 'location of formation', {'concept': 'administrative territorial entity'}], ['KMVK', 'licensed to broadcast to', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:KMVK property:licensed_to_broadcast_to ?b } UNION { resource:Ducati property:location_of_formation ?b } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q6262978
P248
Q163740 Q2342494 Q502895
USER
How many people have been referred in more number of nonprofit organizations or collectables than John Ward ?
(c(Q502895),P248,c(Q163740)|c(Q2342494))
action count
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q163740
action find_tuple_counts
relation P248
type Q502895
type Q2342494
action count
action filter_multi_types
action find
entity Q6262978
relation P248
type Q163740
type Q2342494
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q163740'}, {'concept': 'Q2342494'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?c ) WHERE { { ?e property:P248 ?t . ?e rdf:type ontology:Q502895 . ?t rdf:type ontology:Q163740 } UNION { ?e property:P248 ?t . ?e rdf:type ontology:Q502895 . ?t rdf:type ontology:Q2342494 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:Q6262978 property:P248 ?n . { { ?n rdf:type ontology:Q163740 } UNION { ?n rdf:type ontology:Q2342494 } } } } . FILTER ( ?c > ?i ) }
John Ward
action count
action greater
action union
action find_tuple_counts
relation stated in
type common name
type nonprofit organization
action find_tuple_counts
relation stated in
type common name
type collectable
action count
action filter_multi_types
action find
entity John Ward
relation stated in
type nonprofit organization
type collectable
[{'concept': 'common name'}, 'stated in', [{'concept': 'nonprofit organization'}, {'concept': 'collectable'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?c ) WHERE { { ?e property:stated_in ?t . ?e rdf:type ontology:common_name . ?t rdf:type ontology:nonprofit_organization } UNION { ?e property:stated_in ?t . ?e rdf:type ontology:common_name . ?t rdf:type ontology:collectable } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:John_Ward property:stated_in ?n . { { ?n rdf:type ontology:nonprofit_organization } UNION { ?n rdf:type ontology:collectable } } } } . FILTER ( ?c > ?i ) }
[]
nonprofit organization collectable common name
SYSTEM
19
Q7342716 Q6237321 Q16859511 Q6249883 Q6236088 Q22936292 Q6255172 Q16908903 Q8018837 Q6145020 Q15990337 Q16850547 Q15452052 Q5537315 Q5233453 Q5241196 Q6237318 Q5233462 Q5537324
(c(Q502895),P248,c(Q163740)|c(Q2342494))
action count
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q163740
action find_tuple_counts
relation P248
type Q502895
type Q2342494
action count
action filter_multi_types
action find
entity Q6262978
relation P248
type Q163740
type Q2342494
[ANSWER]
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q163740'}, {'concept': 'Q2342494'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?c ) WHERE { { ?e property:P248 ?t . ?e rdf:type ontology:Q502895 . ?t rdf:type ontology:Q163740 } UNION { ?e property:P248 ?t . ?e rdf:type ontology:Q502895 . ?t rdf:type ontology:Q2342494 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:Q6262978 property:P248 ?n . { { ?n rdf:type ontology:Q163740 } UNION { ?n rdf:type ontology:Q2342494 } } } } . FILTER ( ?c > ?i ) }
Robert Campbell John Hall John Robinson John Murphy John Gray Gilles De Haes John Roberts William Walker William Stewart James Walker James Walker John Martin John Rogers George Brown David Evans David Wilson John Hall David Evans George Brown
19
action count
action greater
action union
action find_tuple_counts
relation stated in
type common name
type nonprofit organization
action find_tuple_counts
relation stated in
type common name
type collectable
action count
action filter_multi_types
action find
entity John Ward
relation stated in
type nonprofit organization
type collectable
[{'concept': 'common name'}, 'stated in', [{'concept': 'nonprofit organization'}, {'concept': 'collectable'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?c ) WHERE { { ?e property:stated_in ?t . ?e rdf:type ontology:common_name . ?t rdf:type ontology:nonprofit_organization } UNION { ?e property:stated_in ?t . ?e rdf:type ontology:common_name . ?t rdf:type ontology:collectable } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:John_Ward property:stated_in ?n . { { ?n rdf:type ontology:nonprofit_organization } UNION { ?n rdf:type ontology:collectable } } } } . FILTER ( ?c > ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q18810870
P248
Q163740 Q2342494 Q502895
USER
And how about John Robinson?
(c(Q502895),P248,c(Q163740)|c(Q2342494))
action count
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q163740
action find_tuple_counts
relation P248
type Q502895
type Q2342494
action count
action filter_multi_types
action find
entity Q18810870
relation P248
type Q163740
type Q2342494
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q163740'}, {'concept': 'Q2342494'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) ?e WHERE { VALUES ( ?x ) { ( ontology:Q163740 ) ( ontology:Q2342494 ) } . ?y rdf:type ?x } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { resource:Q18810870 property:P248 ?r . { { ?r rdf:type ontology:Q2342494 } UNION { ?r rdf:type ontology:Q163740 } } } } . FILTER ( ?l > ?i ) }
John Robinson
action count
action greater
action union
action find_tuple_counts
relation stated in
type common name
type nonprofit organization
action find_tuple_counts
relation stated in
type common name
type collectable
action count
action filter_multi_types
action find
entity John Robinson
relation stated in
type nonprofit organization
type collectable
[{'concept': 'common name'}, 'stated in', [{'concept': 'nonprofit organization'}, {'concept': 'collectable'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) ?e WHERE { VALUES ( ?x ) { ( ontology:nonprofit_organization ) ( ontology:collectable ) } . ?y rdf:type ?x } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { resource:John_Robinson property:stated_in ?r . { { ?r rdf:type ontology:collectable } UNION { ?r rdf:type ontology:nonprofit_organization } } } } . FILTER ( ?l > ?i ) }
[]
nonprofit organization collectable common name
SYSTEM
19
Q7342716 Q6237321 Q16859511 Q6249883 Q6236088 Q22936292 Q6255172 Q16908903 Q8018837 Q6145020 Q15990337 Q16850547 Q15452052 Q5537315 Q5233453 Q5241196 Q6237318 Q5233462 Q5537324
(c(Q502895),P248,c(Q163740)|c(Q2342494))
action count
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q163740
action find_tuple_counts
relation P248
type Q502895
type Q2342494
action count
action filter_multi_types
action find
entity Q18810870
relation P248
type Q163740
type Q2342494
[ANSWER]
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q163740'}, {'concept': 'Q2342494'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) ?e WHERE { VALUES ( ?x ) { ( ontology:Q163740 ) ( ontology:Q2342494 ) } . ?y rdf:type ?x } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { resource:Q18810870 property:P248 ?r . { { ?r rdf:type ontology:Q2342494 } UNION { ?r rdf:type ontology:Q163740 } } } } . FILTER ( ?l > ?i ) }
Robert Campbell John Hall John Robinson John Murphy John Gray Gilles De Haes John Roberts William Walker William Stewart James Walker James Walker John Martin John Rogers George Brown David Evans David Wilson John Hall David Evans George Brown
19
action count
action greater
action union
action find_tuple_counts
relation stated in
type common name
type nonprofit organization
action find_tuple_counts
relation stated in
type common name
type collectable
action count
action filter_multi_types
action find
entity John Robinson
relation stated in
type nonprofit organization
type collectable
[{'concept': 'common name'}, 'stated in', [{'concept': 'nonprofit organization'}, {'concept': 'collectable'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) ?e WHERE { VALUES ( ?x ) { ( ontology:nonprofit_organization ) ( ontology:collectable ) } . ?y rdf:type ?x } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { resource:John_Robinson property:stated_in ?r . { { ?r rdf:type ontology:collectable } UNION { ?r rdf:type ontology:nonprofit_organization } } } } . FILTER ( ?l > ?i ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q659962
P161
Q838948
USER
How many works of art have David Huddleston in their star cast ?
(c(Q838948),P161,Q659962)
action count
action filter_type
action find_reverse
entity Q659962
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q659962']
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { ?o property:P161 resource:Q659962 . ?o rdf:type ontology:Q838948 }
David Huddleston
action count
action filter_type
action find_reverse
entity David Huddleston
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'David Huddleston']
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { ?o property:cast_member resource:David_Huddleston . ?o rdf:type ontology:work_of_art }
[]
work of art
SYSTEM
22
Q5450703 Q337078 Q1660768 Q422052 Q232175 Q609467 Q232166 Q1571203 Q700905 Q957698 Q913839 Q788767 Q963867 Q2119348 Q126652 Q82388 Q957323 Q3820025 Q3564816 Q940186 Q673437 Q956636
(c(Q838948),P161,Q659962)
action count
action filter_type
action find_reverse
entity Q659962
relation P161
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q659962']
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { ?o property:P161 resource:Q659962 . ?o rdf:type ontology:Q838948 }
Finnegan Begin Again The Big Lebowski Bad Company Something Big Go for It Capricorn One Crime Busters A Lovely Way to Die Postal Smokey and the Bandit II Santa Claus: The Movie The Greatest McQ The Producers Frantic Billy Two Hats Blazing Saddles The Klansman WUSA Breakheart Pass Rio Lobo Joe's Apartment
22
action count
action filter_type
action find_reverse
entity David Huddleston
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'David Huddleston']
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { ?o property:cast_member resource:David_Huddleston . ?o rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q557990
P170
Q502895
USER
Who is the creator of Emil i Lönneberga ?
(Q557990,P170,c(Q502895))
action filter_type
action find
entity Q557990
relation P170
type Q502895
['Q557990', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . resource:Q557990 property:P170 ?k }
Emil i Lönneberga
action filter_type
action find
entity Emil i Lönneberga
relation creator
type common name
['Emil i Lönneberga', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . resource:Emil_i_Lönneberga property:creator ?k }
[]
common name
Q55767
SYSTEM
Astrid Lindgren
Q55767
(Q557990,P170,c(Q502895))
action filter_type
action find
entity Q557990
relation P170
type Q502895
The creator of Emil i Lönneberga is named [ANSWER]
['Q557990', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . resource:Q557990 property:P170 ?k }
Astrid Lindgren
The creator of Emil i Lönneberga is named Astrid Lindgren
Astrid Lindgren
action filter_type
action find
entity Emil i Lönneberga
relation creator
type common name
['Emil i Lönneberga', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . resource:Emil_i_Lönneberga property:creator ?k }
[]