Simple Question (Direct)
Simple Question
Q7344956
P27
Q15617994
USER
Which administrative territory is Robert Grey Bushong a civilian of ?
(Q7344956,P27,c(Q15617994))
action filter_type
action find
entity Q7344956
relation P27
type Q15617994
['Q7344956', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q7344956 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
Robert Grey Bushong
action filter_type
action find
entity Robert Grey Bushong
relation country of citizenship
type designation for an administrative territorial entity
['Robert Grey Bushong', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Robert_Grey_Bushong property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q7344956,P27,c(Q15617994))
action filter_type
action find
entity Q7344956
relation P27
type Q15617994
[ANSWER] is Robert Grey Bushong a civilian of
['Q7344956', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q7344956 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
United States of America
United States of America is Robert Grey Bushong a civilian of
United States of America
action filter_type
action find
entity Robert Grey Bushong
relation country of citizenship
type designation for an administrative territorial entity
['Robert Grey Bushong', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Robert_Grey_Bushong property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7344956
P937
Q852446
USER
What is the location where Robert Grey Bushong worked ?
(Q7344956,P937,c(Q852446))
action filter_type
action find
entity Q7344956
relation P937
type Q852446
['Q7344956', 'P937', {'concept': 'Q852446'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q852446 . resource:Q7344956 property:P937 ?v }
Robert Grey Bushong
action filter_type
action find
entity Robert Grey Bushong
relation work location
type administrative territorial entity of the United States
['Robert Grey Bushong', 'work location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity_of_the_United_States . resource:Robert_Grey_Bushong property:work_location ?v }
[]
administrative territorial entity of the United States
Q25280
SYSTEM
Harrisburg
Q25280
(Q7344956,P937,c(Q852446))
action filter_type
action find
entity Q7344956
relation P937
type Q852446
The location Robert Grey Bushong worked is in [ANSWER]
['Q7344956', 'P937', {'concept': 'Q852446'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q852446 . resource:Q7344956 property:P937 ?v }
Harrisburg
The location Robert Grey Bushong worked is in Harrisburg
Harrisburg
action filter_type
action find
entity Robert Grey Bushong
relation work location
type administrative territorial entity of the United States
['Robert Grey Bushong', 'work location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity_of_the_United_States . resource:Robert_Grey_Bushong property:work_location ?v }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q25280 Q277981
P17
Q15617994
USER
Is that US administrative territory present in Salcito ?
(Q25280,P17,Q277981)
action is_in
entity Q277981
action find
entity Q25280
relation P17
['Q25280', 'P17', 'Q277981']
ASK WHERE { resource:Q25280 property:P17 resource:Q277981 }
Harrisburg Salcito
action is_in
entity Salcito
action find
entity Harrisburg
relation country
['Harrisburg', 'country', 'Salcito']
ASK WHERE { resource:Harrisburg property:country resource:Salcito }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q25280,P17,Q277981)
action is_in
entity Q277981
action find
entity Q25280
relation P17
[ANSWER]
['Q25280', 'P17', 'Q277981']
ASK WHERE { resource:Q25280 property:P17 resource:Q277981 }
No
action is_in
entity Salcito
action find
entity Harrisburg
relation country
['Harrisburg', 'country', 'Salcito']
ASK WHERE { resource:Harrisburg property:country resource:Salcito }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1612
P840
Q852446 Q166142 Q838948
USER
Which US administrative territories are approximately the same number of applications or works of art set in as Arkansas ?
(c(Q166142)|c(Q838948),P840,c(Q852446))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q166142
action find_reverse_tuple_counts
relation P840
type Q852446
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1612
relation P840
type Q166142
type Q838948
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?h ) WHERE { VALUES ( ?x ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } . ?t rdf:type ?x } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:P840 resource:Q1612 . { ?y rdf:type ?r . VALUES ( ?r ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } } } } . FILTER ( ?h = ?q ) }
Arkansas
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type application
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type work of art
action count
action filter_multi_types
action find_reverse
entity Arkansas
relation narrative location
type application
type work of art
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?h ) WHERE { VALUES ( ?x ) { ( ontology:application ) ( ontology:work_of_art ) } . ?t rdf:type ?x } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:narrative_location resource:Arkansas . { ?y rdf:type ?r . VALUES ( ?r ) { ( ontology:application ) ( ontology:work_of_art ) } } } } . FILTER ( ?h = ?q ) }
[]
administrative territorial entity of the United States application work of art
Q1428 Q1527 Q1166
SYSTEM
Georgia, Minnesota, Michigan
Q1397 Q43421 Q829 Q1603 Q1391 Q7886863 Q5000330 Q724 Q1581 Q1537 Q1370 Q1612 Q1454 Q3474463 Q1415 Q782 Q1527 Q1546 Q1204 Q1522 Q824 Q1227 Q1223 Q1166 Q816 Q771 Q1207 Q1509 Q1371 Q1261 Q779 Q1428 Q38555 Q759 Q1558 Q14710458 Q1588 Q173 Q523606 Q797 Q4705487 Q1212 Q1553 Q1211 Q16551
(c(Q166142)|c(Q838948),P840,c(Q852446))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q166142
action find_reverse_tuple_counts
relation P840
type Q852446
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1612
relation P840
type Q166142
type Q838948
[ANSWERS] are approximately the same number of applications or works of art set in as Arkansas
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?h ) WHERE { VALUES ( ?x ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } . ?t rdf:type ?x } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:P840 resource:Q1612 . { ?y rdf:type ?r . VALUES ( ?r ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } } } } . FILTER ( ?h = ?q ) }
Ohio Richmond Utah Kentucky Maryland Unionville Burr Oak, Iowa Maine Missouri Wisconsin Virginia Arkansas North Carolina South Troy Indiana Hawaii Minnesota Iowa Illinois New Mexico Oregon Nevada Washington Michigan Arizona Massachusetts North Dakota Tennessee West Virginia Colorado Connecticut Georgia Santa Fe New Hampshire Kansas Esperanza Louisiana Alabama Langley Alaska Aladdin, Wyoming Montana Nebraska South Dakota Vermont
Georgia, Minnesota and Michigan are approximately the same number of applications or works of art set in as Arkansas
Georgia Minnesota Michigan
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type application
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type work of art
action count
action filter_multi_types
action find_reverse
entity Arkansas
relation narrative location
type application
type work of art
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?h ) WHERE { VALUES ( ?x ) { ( ontology:application ) ( ontology:work_of_art ) } . ?t rdf:type ?x } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:narrative_location resource:Arkansas . { ?y rdf:type ?r . VALUES ( ?r ) { ( ontology:application ) ( ontology:work_of_art ) } } } } . FILTER ( ?h = ?q ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q14710458
P840
Q852446 Q166142 Q838948
USER
And what about Esperanza?
(c(Q166142)|c(Q838948),P840,c(Q852446))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q166142
action find_reverse_tuple_counts
relation P840
type Q852446
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q14710458
relation P840
type Q166142
type Q838948
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?l ) WHERE { { ?o property:P840 ?d . ?d rdf:type ontology:Q852446 . ?o rdf:type ontology:Q166142 } UNION { ?o property:P840 ?d . ?d rdf:type ontology:Q852446 . ?o rdf:type ontology:Q838948 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:P840 resource:Q14710458 . { { ?v rdf:type ontology:Q166142 } UNION { ?v rdf:type ontology:Q838948 } } } } . FILTER ( ?l = ?h ) }
Esperanza
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type application
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type work of art
action count
action filter_multi_types
action find_reverse
entity Esperanza
relation narrative location
type application
type work of art
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?l ) WHERE { { ?o property:narrative_location ?d . ?d rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?o rdf:type ontology:application } UNION { ?o property:narrative_location ?d . ?d rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?o rdf:type ontology:work_of_art } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:narrative_location resource:Esperanza . { { ?v rdf:type ontology:application } UNION { ?v rdf:type ontology:work_of_art } } } } . FILTER ( ?l = ?h ) }
[]
administrative territorial entity of the United States application work of art
Q1428 Q1527 Q1166
SYSTEM
Georgia, Minnesota, Michigan
Q1397 Q43421 Q829 Q1603 Q1391 Q7886863 Q5000330 Q724 Q1581 Q1537 Q1370 Q1612 Q1454 Q3474463 Q1415 Q782 Q1527 Q1546 Q1204 Q1522 Q824 Q1227 Q1223 Q1166 Q771 Q1207 Q1509 Q1371 Q1261 Q779 Q1428 Q38555 Q759 Q1558 Q14710458 Q1588 Q173 Q523606 Q797 Q4705487 Q1212 Q1553 Q1211 Q16551
(c(Q166142)|c(Q838948),P840,c(Q852446))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q166142
action find_reverse_tuple_counts
relation P840
type Q852446
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q14710458
relation P840
type Q166142
type Q838948
[ANSWERS]
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?l ) WHERE { { ?o property:P840 ?d . ?d rdf:type ontology:Q852446 . ?o rdf:type ontology:Q166142 } UNION { ?o property:P840 ?d . ?d rdf:type ontology:Q852446 . ?o rdf:type ontology:Q838948 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:P840 resource:Q14710458 . { { ?v rdf:type ontology:Q166142 } UNION { ?v rdf:type ontology:Q838948 } } } } . FILTER ( ?l = ?h ) }
Ohio Richmond Utah Kentucky Maryland Unionville Burr Oak, Iowa Maine Missouri Wisconsin Virginia Arkansas North Carolina South Troy Indiana Hawaii Minnesota Iowa Illinois New Mexico Oregon Nevada Washington Michigan Massachusetts North Dakota Tennessee West Virginia Colorado Connecticut Georgia Santa Fe New Hampshire Kansas Esperanza Louisiana Alabama Langley Alaska Aladdin, Wyoming Montana Nebraska South Dakota Vermont
Georgia Minnesota Michigan
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type application
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type work of art
action count
action filter_multi_types
action find_reverse
entity Esperanza
relation narrative location
type application
type work of art
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?l ) WHERE { { ?o property:narrative_location ?d . ?d rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?o rdf:type ontology:application } UNION { ?o property:narrative_location ?d . ?d rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?o rdf:type ontology:work_of_art } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:narrative_location resource:Esperanza . { { ?v rdf:type ontology:application } UNION { ?v rdf:type ontology:work_of_art } } } } . FILTER ( ?l = ?h ) }
[]
Logical Reasoning (All)
Logical|Difference|Single_Relation
Q65 Q1428
P915
Q838948
USER
Which works of art were filmed in the location Georgia but not Los Angeles ?
AND((c(Q838948),P915,Q1428), NOT((c(Q838948),P915,Q65)))
action filter_type
action difference
action find_reverse
entity Q1428
relation P915
action find_reverse
entity Q65
relation P915
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P915', 'Q1428'], {'NOT': [[{'concept': 'Q838948'}, 'P915', 'Q65']]}]}
SELECT DISTINCT ?k WHERE { ?k property:P915 resource:Q1428 . MINUS { ?k property:P915 resource:Q65 } . ?k rdf:type ontology:Q838948 }
Los Angeles Georgia
action filter_type
action difference
action find_reverse
entity Georgia
relation filming location
action find_reverse
entity Los Angeles
relation filming location
type work of art
{'AND': [[{'concept': 'work of art'}, 'filming location', 'Georgia'], {'NOT': [[{'concept': 'work of art'}, 'filming location', 'Los Angeles']]}]}
SELECT DISTINCT ?k WHERE { ?k property:filming_location resource:Georgia . MINUS { ?k property:filming_location resource:Los_Angeles } . ?k rdf:type ontology:work_of_art }
[]
work of art
Q18155457 Q501995 Q1167231 Q10307713 Q5692532 Q118375 Q6407773 Q21480357 Q1156977 Q1479291
SYSTEM
Some of them are Vacation, Cape Fear, The War, The Hunger Games: Mockingjay – Part 2, Heartaches, Fried Green Tomatoes, Killing Winston Jones, Ram-Leela, Daddy's Little Girls, The Mosquito Coast
Q888581 Q20022675 Q501995 Q2065792 Q1708537 Q15961525 Q1079636 Q662668 Q1197869 Q1193385 Q2095438 Q574583 Q18155457 Q759359 Q14523264 Q4415149 Q1917936 Q20649594 Q15609981 Q17893055 Q20031748 Q401976 Q737076 Q3280560 Q886719 Q13374569 Q1757036 Q6407773 Q1156977 Q2326990 Q838154 Q1128745 Q14396397 Q13522800 Q3599091 Q859045 Q681299 Q1479291 Q1623056 Q253901 Q6807833 Q3196650 Q1192874 Q21480357 Q303040 Q2085298 Q118375 Q427296 Q2411262 Q1165208 Q908690 Q1304692 Q1574364 Q5582519 Q16834663 Q1422782 Q1167231 Q730888 Q900362 Q117696 Q1265087 Q943054 Q797678 Q5692532 Q3235276 Q10307713 Q3110527 Q4997083 Q1089283 Q20649795 Q16161887 Q7142650 Q749688 Q564298 Q623502 Q1330703 Q1114685 Q7782781 Q7379521 Q20649730 Q19839914 Q219810 Q17183770 Q3025443 Q19829347 Q206497 Q29313 Q7132599 Q112747 Q7111232 Q20649701 Q1391659 Q814778 Q813464 Q3522804 Q1995841 Q3521995 Q21293827 Q3285929 Q19801728 Q6726798 Q4142083 Q246711 Q668928 Q478333 Q7765993 Q2580402 Q451272 Q1454799 Q330247
AND((c(Q838948),P915,Q1428), NOT((c(Q838948),P915,Q65)))
action filter_type
action difference
action find_reverse
entity Q1428
relation P915
action find_reverse
entity Q65
relation P915
type Q838948
[ANSWERS] were filmed in the location Georgia but not Los Angeles
{'AND': [[{'concept': 'Q838948'}, 'P915', 'Q1428'], {'NOT': [[{'concept': 'Q838948'}, 'P915', 'Q65']]}]}
SELECT DISTINCT ?k WHERE { ?k property:P915 resource:Q1428 . MINUS { ?k property:P915 resource:Q65 } . ?k rdf:type ontology:Q838948 }
Bobby Jones: Stroke of Genius The List Cape Fear The Great Locomotive Chase Wanderlust The Homesman Pet Sematary Two That Darn Cat Footloose Fireproof Together for Days The Hunger Games: Catching Fire Vacation The Cannonball Run Kill the Messenger Temptation: Confessions of a Marriage Counselor Gator Confirmation Savannah Magic Mike XXL The Founder Fast Five Cannibal Apocalypse Flywheel Manhunter Need for Speed Squirm Killing Winston Jones Daddy's Little Girls All My Babies My Cousin Vinny Hall Pass Endless Love Blended 42 Big Mommas: Like Father, Like Son Moon in Taurus The Mosquito Coast The Fighting Temptations Lawless Meet the Browns Killing Season We Are Marshall Ram-Leela American Reunion Joyful Noise Fried Green Tomatoes The Crazies The Family That Preys Killers Halloween II The Big Year The Change-Up Good Deeds Deadland Trespass The War Contagion The Last Song Remember the Titans Dumb and Dumberer: When Harry Met Lloyd Consenting Adults Sabotage Heartaches Madea's Witness Protection The Hunger Games: Mockingjay – Part 2 Summer Rental Bully Child's Play 3 The Lady from Sockholm Midnight Rider Passing Glory Sweet Home Alabama Flight We Were Soldiers Made in Heaven Career Opportunities There Was a Little Girl Run Ronnie Run Dear God No! Billy Lynn's Long Halftime Walk Zombieland Selma Devil's Knot In Dubious Battle The Blind Side The Watch Paper Boys Trouble with the Curve Our Winning Season The Do-Over Facing the Giants Deliverance Beauty Shop The Spectacular Now Moonrunners The Neon Bible Live by Night Courageous Alvin and the Chipmunks: Road Chip Madea's Big Happy Family The Hunger Games: Mockingjay – Part 1 The Gift The Sheriff and the Satellite Kid The Green Berets The SpongeBob Movie: Sponge Out of Water Stomp the Yard 2: Homecoming Get Low Friday the 13th Part VI: Jason Lives Abraham Lincoln vs. Zombies
Vacation, Cape Fear, The War, The Hunger Games: Mockingjay – Part 2, Heartaches, Fried Green Tomatoes, Killing Winston Jones, Ram-Leela, Daddy's Little Girls and The Mosquito Coast were filmed in the location Georgia but not Los Angeles
Vacation Cape Fear The War The Hunger Games: Mockingjay – Part 2 Heartaches Fried Green Tomatoes Killing Winston Jones Ram-Leela Daddy's Little Girls The Mosquito Coast
action filter_type
action difference
action find_reverse
entity Georgia
relation filming location
action find_reverse
entity Los Angeles
relation filming location
type work of art
{'AND': [[{'concept': 'work of art'}, 'filming location', 'Georgia'], {'NOT': [[{'concept': 'work of art'}, 'filming location', 'Los Angeles']]}]}
SELECT DISTINCT ?k WHERE { ?k property:filming_location resource:Georgia . MINUS { ?k property:filming_location resource:Los_Angeles } . ?k rdf:type ontology:work_of_art }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P161
Q502895
USER
How many people were casted in that work of art ?
(Q1167231,P161,c(Q502895))
['Q1167231', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q490194 property:Q3297652 ?z . ?z rdf:type ontology:Q502895 }
['The War', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:The_War property:cast_member ?z . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q1156977
SYSTEM
Did you mean Daddy's Little Girls ?
(Q18155457,P161,c(Q502895)) (Q501995,P161,c(Q502895)) (Q1167231,P161,c(Q502895)) (Q10307713,P161,c(Q502895)) (Q5692532,P161,c(Q502895)) (Q118375,P161,c(Q502895)) (Q6407773,P161,c(Q502895)) (Q21480357,P161,c(Q502895)) (Q1156977,P161,c(Q502895)) (Q1479291,P161,c(Q502895))
[ANSWER]
['Q18155457', 'P161', {'concept': 'Q502895'}] ['Q501995', 'P161', {'concept': 'Q502895'}] ['Q1167231', 'P161', {'concept': 'Q502895'}] ['Q10307713', 'P161', {'concept': 'Q502895'}] ['Q5692532', 'P161', {'concept': 'Q502895'}] ['Q118375', 'P161', {'concept': 'Q502895'}] ['Q6407773', 'P161', {'concept': 'Q502895'}] ['Q21480357', 'P161', {'concept': 'Q502895'}] ['Q1156977', 'P161', {'concept': 'Q502895'}] ['Q1479291', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q490194 property:Q3297652 ?z . ?z rdf:type ontology:Q502895 }
Did you mean Daddy's Little Girls ?
Daddy's Little Girls
['Vacation', 'cast member', {'concept': 'common name'}] ['Cape Fear', 'cast member', {'concept': 'common name'}] ['The War', 'cast member', {'concept': 'common name'}] ['The Hunger Games: Mockingjay – Part 2', 'cast member', {'concept': 'common name'}] ['Heartaches', 'cast member', {'concept': 'common name'}] ['Fried Green Tomatoes', 'cast member', {'concept': 'common name'}] ['Killing Winston Jones', 'cast member', {'concept': 'common name'}] ['Ram-Leela', 'cast member', {'concept': 'common name'}] ["Daddy's Little Girls", 'cast member', {'concept': 'common name'}] ['The Mosquito Coast', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:The_War property:cast_member ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant The War. Could you tell me the answer for that?
(Q1167231,P161,c(Q502895))
Q1167231
['Q1167231', 'P161', {'concept': 'Q502895'}]
['The War', 'cast member', {'concept': 'common name'}]
[]
SYSTEM
6
Q11930 Q229134 Q483771 Q359491 Q235189 Q200450
(Q1167231,P161,c(Q502895))
[ANSWER]
['Q1167231', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q490194 property:Q3297652 ?z . ?z rdf:type ontology:Q502895 }
Kevin Costner Christine Baranski Elijah Wood Lucas Black Mare Winningham Lexi Randall
6
['The War', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:The_War property:cast_member ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q118375
P136
Q483394 Q1792379
USER
How many genres and art genres can be considered as category for Fried Green Tomatoes ?
(Q118375,P136,c(Q483394)) (Q118375,P136,c(Q1792379))
action count
action union
action filter_type
action find
entity Q118375
relation P136
type Q483394
action filter_type
action find
entity Q118375
relation P136
type Q1792379
['Q118375', 'P136', {'concept': 'Q483394'}] ['Q118375', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { ?o rdf:type ?u . VALUES ( ?u ) { ( ontology:Q1792379 ) ( ontology:Q483394 ) } }
Fried Green Tomatoes
action count
action union
action filter_type
action find
entity Fried Green Tomatoes
relation genre
type genre
action filter_type
action find
entity Fried Green Tomatoes
relation genre
type art genre
['Fried Green Tomatoes', 'genre', {'concept': 'genre'}] ['Fried Green Tomatoes', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { ?o rdf:type ?u . VALUES ( ?u ) { ( ontology:art_genre ) ( ontology:genre ) } }
[]
genre art genre
SYSTEM
1 genres and 3 art genres
Q859369 Q1257444 Q1200678 Q5442753
(Q118375,P136,c(Q483394)) (Q118375,P136,c(Q1792379))
action count
action union
action filter_type
action find
entity Q118375
relation P136
type Q483394
action filter_type
action find
entity Q118375
relation P136
type Q1792379
[ANSWER]
['Q118375', 'P136', {'concept': 'Q483394'}] ['Q118375', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { ?o rdf:type ?u . VALUES ( ?u ) { ( ontology:Q1792379 ) ( ontology:Q483394 ) } }
comedy-drama film adaptation mystery film female buddy film
1 genres and 3 art genres
action count
action union
action filter_type
action find
entity Fried Green Tomatoes
relation genre
type genre
action filter_type
action find
entity Fried Green Tomatoes
relation genre
type art genre
['Fried Green Tomatoes', 'genre', {'concept': 'genre'}] ['Fried Green Tomatoes', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { ?o rdf:type ?u . VALUES ( ?u ) { ( ontology:art_genre ) ( ontology:genre ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3840899 Q1428
P19 P17
Q15617994
USER
Which administrative territories are Georgia present in or were Lussorio Cau born at ?
OR((Q1428,P17,c(Q15617994)), (Q3840899,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q1428
relation P17
action find
entity Q3840899
relation P19
type Q15617994
{'OR': [['Q1428', 'P17', {'concept': 'Q15617994'}], ['Q3840899', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q1428 property:P17 ?h } UNION { resource:Q3840899 property:P19 ?h } } . ?h rdf:type ontology:Q15617994 }
Lussorio Cau Georgia
action filter_type
action union
action find
entity Georgia
relation country
action find
entity Lussorio Cau
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Georgia', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Lussorio Cau', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Georgia property:country ?h } UNION { resource:Lussorio_Cau property:place_of_birth ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q294752
SYSTEM
United States of America, Borore
Q30 Q294752
OR((Q1428,P17,c(Q15617994)), (Q3840899,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q1428
relation P17
action find
entity Q3840899
relation P19
type Q15617994
Georgia are born the [ANSWERS]
{'OR': [['Q1428', 'P17', {'concept': 'Q15617994'}], ['Q3840899', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q1428 property:P17 ?h } UNION { resource:Q3840899 property:P19 ?h } } . ?h rdf:type ontology:Q15617994 }
United States of America Borore
Georgia are born the United States of America and Borore
United States of America Borore
action filter_type
action union
action find
entity Georgia
relation country
action find
entity Lussorio Cau
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Georgia', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Lussorio Cau', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Georgia property:country ?h } UNION { resource:Lussorio_Cau property:place_of_birth ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q720942 Q1428
P17
Q15617994
USER
Which administrative territories are Georgia or Manjil situated in ?
OR((Q1428,P17,c(Q15617994)), (Q720942,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1428
relation P17
action find
entity Q720942
relation P17
type Q15617994
{'OR': [['Q1428', 'P17', {'concept': 'Q15617994'}], ['Q720942', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?b ) { ( resource:Q1428 ) ( resource:Q720942 ) } . ?b property:P17 ?d } . ?d rdf:type ontology:Q15617994 }
Manjil Georgia
action filter_type
action union
action find
entity Georgia
relation country
action find
entity Manjil
relation country
type designation for an administrative territorial entity
{'OR': [['Georgia', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Manjil', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?b ) { ( resource:Georgia ) ( resource:Manjil ) } . ?b property:country ?d } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q794
SYSTEM
United States of America, Iran
Q30 Q794
OR((Q1428,P17,c(Q15617994)), (Q720942,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1428
relation P17
action find
entity Q720942
relation P17
type Q15617994
Georgia or Manjil are situated in [ANSWERS]
{'OR': [['Q1428', 'P17', {'concept': 'Q15617994'}], ['Q720942', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?b ) { ( resource:Q1428 ) ( resource:Q720942 ) } . ?b property:P17 ?d } . ?d rdf:type ontology:Q15617994 }
United States of America Iran
Georgia or Manjil are situated in United States of America and Iran
United States of America Iran
action filter_type
action union
action find
entity Georgia
relation country
action find
entity Manjil
relation country
type designation for an administrative territorial entity
{'OR': [['Georgia', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Manjil', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?b ) { ( resource:Georgia ) ( resource:Manjil ) } . ?b property:country ?d } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P840
Q852446 Q838948 Q2342494
USER
Which US administrative territories are the narrative locations of max number of works of art or collectables ?
(c(Q838948)|c(Q2342494),P840,c(Q852446))
action argmax
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q838948
action find_reverse_tuple_counts
relation P840
type Q852446
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?g ) { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?k ) WHERE { { ?c property:P840 ?q . ?q rdf:type ontology:Q852446 . ?c rdf:type ontology:Q838948 } UNION { ?c property:P840 ?q . ?c rdf:type ontology:Q2342494 . ?q rdf:type ontology:Q852446 } } GROUP BY ?q } } . FILTER ( ?h = ?g ) . { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?h ) WHERE { ?x rdf:type ?s . VALUES ( ?s ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } } GROUP BY ?r } }
action argmax
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type work of art
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?g ) { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?k ) WHERE { { ?c property:narrative_location ?q . ?q rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?c rdf:type ontology:work_of_art } UNION { ?c property:narrative_location ?q . ?c rdf:type ontology:collectable . ?q rdf:type ontology:administrative_territorial_entity_of_the_United_States } } GROUP BY ?q } } . FILTER ( ?h = ?g ) . { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?h ) WHERE { ?x rdf:type ?s . VALUES ( ?s ) { ( ontology:work_of_art ) ( ontology:collectable ) } } GROUP BY ?r } }
[]
administrative territorial entity of the United States work of art collectable
Q99
SYSTEM
California
Q99
(c(Q838948)|c(Q2342494),P840,c(Q852446))
action argmax
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q838948
action find_reverse_tuple_counts
relation P840
type Q852446
type Q2342494
[ANSWER] is the narrative locations of max number of works of art or collectables
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?g ) { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?k ) WHERE { { ?c property:P840 ?q . ?q rdf:type ontology:Q852446 . ?c rdf:type ontology:Q838948 } UNION { ?c property:P840 ?q . ?c rdf:type ontology:Q2342494 . ?q rdf:type ontology:Q852446 } } GROUP BY ?q } } . FILTER ( ?h = ?g ) . { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?h ) WHERE { ?x rdf:type ?s . VALUES ( ?s ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } } GROUP BY ?r } }
California
California is the narrative locations of max number of works of art or collectables
California
action argmax
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type work of art
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?g ) { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?k ) WHERE { { ?c property:narrative_location ?q . ?q rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?c rdf:type ontology:work_of_art } UNION { ?c property:narrative_location ?q . ?c rdf:type ontology:collectable . ?q rdf:type ontology:administrative_territorial_entity_of_the_United_States } } GROUP BY ?q } } . FILTER ( ?h = ?g ) . { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?h ) WHERE { ?x rdf:type ?s . VALUES ( ?s ) { ( ontology:work_of_art ) ( ontology:collectable ) } } GROUP BY ?r } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q99 Q30
P17
Q15617994
USER
Is that US administrative territory a part of United States of America ?
(Q99,P17,Q30)
action is_in
entity Q30
action find
entity Q99
relation P17
['Q99', 'P17', 'Q30']
ASK WHERE { resource:Q99 property:P17 resource:Q30 }
California United States of America
action is_in
entity United States of America
action find
entity California
relation country
['California', 'country', 'United States of America']
ASK WHERE { resource:California property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q99,P17,Q30)
action is_in
entity Q30
action find
entity Q99
relation P17
[ANSWER]
['Q99', 'P17', 'Q30']
ASK WHERE { resource:Q99 property:P17 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity California
relation country
['California', 'country', 'United States of America']
ASK WHERE { resource:California property:country resource:United_States_of_America }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q99
P706
Q43229
USER
Which organization has its location as California ?
(c(Q43229),P706,Q99)
action filter_type
action find_reverse
entity Q99
relation P706
type Q43229
[{'concept': 'Q43229'}, 'P706', 'Q99']
SELECT DISTINCT ?r WHERE { ?r property:P706 resource:Q99 . ?r rdf:type ontology:Q43229 }
California
action filter_type
action find_reverse
entity California
relation located on terrain feature
type organization
[{'concept': 'organization'}, 'located on terrain feature', 'California']
SELECT DISTINCT ?r WHERE { ?r property:located_on_terrain_feature resource:California . ?r rdf:type ontology:organization }
[]
organization
Q5175946
SYSTEM
Couchbase, Inc.
Q5175946
(c(Q43229),P706,Q99)
action filter_type
action find_reverse
entity Q99
relation P706
type Q43229
[ANSWER] has its location as California
[{'concept': 'Q43229'}, 'P706', 'Q99']
SELECT DISTINCT ?r WHERE { ?r property:P706 resource:Q99 . ?r rdf:type ontology:Q43229 }
Couchbase, Inc.
Couchbase, Inc. has its location as California
Couchbase, Inc.
action filter_type
action find_reverse
entity California
relation located on terrain feature
type organization
[{'concept': 'organization'}, 'located on terrain feature', 'California']
SELECT DISTINCT ?r WHERE { ?r property:located_on_terrain_feature resource:California . ?r rdf:type ontology:organization }
[]