Simple Question (Direct)
Simple Question
Q1679923
P19
Q56061
USER
Where was James Adams Stallworth born ?
(Q1679923,P19,c(Q56061))
action filter_type
action find
entity Q1679923
relation P19
type Q56061
['Q1679923', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q1679923 property:P19 ?x . ?x rdf:type ontology:Q56061 }
James Adams Stallworth
action filter_type
action find
entity James Adams Stallworth
relation place of birth
type administrative territorial entity
['James Adams Stallworth', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:James_Adams_Stallworth property:place_of_birth ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q79624
SYSTEM
Evergreen
Q79624
(Q1679923,P19,c(Q56061))
action filter_type
action find
entity Q1679923
relation P19
type Q56061
James Adams Stallworth was born in [ANSWER]
['Q1679923', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q1679923 property:P19 ?x . ?x rdf:type ontology:Q56061 }
Evergreen
James Adams Stallworth was born in Evergreen
Evergreen
action filter_type
action find
entity James Adams Stallworth
relation place of birth
type administrative territorial entity
['James Adams Stallworth', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:James_Adams_Stallworth property:place_of_birth ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q5213785 Q1679923
P102
Q7210356
USER
Which political organizations are James Adams Stallworth and Dan Kelley affiliated with ?
AND((Q1679923,P102,c(Q7210356)), (Q5213785,P102,c(Q7210356)))
action filter_type
action intersection
action find
entity Q1679923
relation P102
action find
entity Q5213785
relation P102
type Q7210356
{'AND': [['Q1679923', 'P102', {'concept': 'Q7210356'}], ['Q5213785', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?e WHERE { resource:Q5213785 property:P102 ?e . resource:Q1679923 property:P102 ?e . ?e rdf:type ontology:Q7210356 }
Dan Kelley James Adams Stallworth
action filter_type
action intersection
action find
entity James Adams Stallworth
relation member of political party
action find
entity Dan Kelley
relation member of political party
type political organization
{'AND': [['James Adams Stallworth', 'member of political party', {'concept': 'political organization'}], ['Dan Kelley', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?e WHERE { resource:Dan_Kelley property:member_of_political_party ?e . resource:James_Adams_Stallworth property:member_of_political_party ?e . ?e rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
AND((Q1679923,P102,c(Q7210356)), (Q5213785,P102,c(Q7210356)))
action filter_type
action intersection
action find
entity Q1679923
relation P102
action find
entity Q5213785
relation P102
type Q7210356
James Adams Stallworth and Dan Kelley are affiliated with [ANSWER]
{'AND': [['Q1679923', 'P102', {'concept': 'Q7210356'}], ['Q5213785', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?e WHERE { resource:Q5213785 property:P102 ?e . resource:Q1679923 property:P102 ?e . ?e rdf:type ontology:Q7210356 }
Democratic Party
James Adams Stallworth and Dan Kelley are affiliated with Democratic Party
Democratic Party
action filter_type
action intersection
action find
entity James Adams Stallworth
relation member of political party
action find
entity Dan Kelley
relation member of political party
type political organization
{'AND': [['James Adams Stallworth', 'member of political party', {'concept': 'political organization'}], ['Dan Kelley', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?e WHERE { resource:Dan_Kelley property:member_of_political_party ?e . resource:James_Adams_Stallworth property:member_of_political_party ?e . ?e rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q29552 Q61
P159
Q56061
USER
Is Washington, D.C. the headquarter location of Democratic Party ?
(Q29552,P159,Q61)
action is_in
entity Q61
action find
entity Q29552
relation P159
['Q29552', 'P159', 'Q61']
ASK WHERE { resource:Q29552 property:P159 resource:Q61 }
Democratic Party Washington, D.C.
action is_in
entity Washington, D.C.
action find
entity Democratic Party
relation headquarters location
['Democratic Party', 'headquarters location', 'Washington, D.C.']
ASK WHERE { resource:Democratic_Party property:headquarters_location resource:Washington,_D.C. }
[]
administrative territorial entity
SYSTEM
YES
(Q29552,P159,Q61)
action is_in
entity Q61
action find
entity Q29552
relation P159
[ANSWER]
['Q29552', 'P159', 'Q61']
ASK WHERE { resource:Q29552 property:P159 resource:Q61 }
Yes
action is_in
entity Washington, D.C.
action find
entity Democratic Party
relation headquarters location
['Democratic Party', 'headquarters location', 'Washington, D.C.']
ASK WHERE { resource:Democratic_Party property:headquarters_location resource:Washington,_D.C. }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1679923
P937
Q56061
USER
What is the work location of James Adams Stallworth ?
(Q1679923,P937,c(Q56061))
action filter_type
action find
entity Q1679923
relation P937
type Q56061
['Q1679923', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q1679923 property:P937 ?j . ?j rdf:type ontology:Q56061 }
James Adams Stallworth
action filter_type
action find
entity James Adams Stallworth
relation work location
type administrative territorial entity
['James Adams Stallworth', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:James_Adams_Stallworth property:work_location ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q29364
SYSTEM
Montgomery
Q29364
(Q1679923,P937,c(Q56061))
action filter_type
action find
entity Q1679923
relation P937
type Q56061
The work location of James Adams Stallworth is in [ANSWER]
['Q1679923', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q1679923 property:P937 ?j . ?j rdf:type ontology:Q56061 }
Montgomery
The work location of James Adams Stallworth is in Montgomery
Montgomery
action filter_type
action find
entity James Adams Stallworth
relation work location
type administrative territorial entity
['James Adams Stallworth', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:James_Adams_Stallworth property:work_location ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q18412361
Q56061
USER
And what about Herman-Walther Frey?
(Q18412361,P937,c(Q56061))
action filter_type
action find
entity Q18412361
relation P937
type Q56061
['Q18412361', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q18412361 property:P937 ?i . ?i rdf:type ontology:Q56061 }
Herman-Walther Frey
action filter_type
action find
entity Herman-Walther Frey
relation work location
type administrative territorial entity
['Herman-Walther Frey', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Herman-Walther_Frey property:work_location ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q18412361,P937,c(Q56061))
action filter_type
action find
entity Q18412361
relation P937
type Q56061
[ANSWER]
['Q18412361', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q18412361 property:P937 ?i . ?i rdf:type ontology:Q56061 }
Berlin
Berlin
action filter_type
action find
entity Herman-Walther Frey
relation work location
type administrative territorial entity
['Herman-Walther Frey', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Herman-Walther_Frey property:work_location ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P915
Q838948 Q201658
USER
How many works of art or film genres were filmed at that administrative territory ?
(c(Q838948),P915,Q64) (c(Q201658),P915,Q64) (c(Q838948),P915,Q64) (c(Q201658),P915,Q64)
action count
action union
action filter_type
action find_reverse
entity Q64
relation P915
type Q838948
action filter_type
action find_reverse
entity Q64
relation P915
type Q201658
[{'concept': 'Q838948'}, 'P915', 'Q64'] [{'concept': 'Q201658'}, 'P915', 'Q64'] [{'concept': 'Q838948'}, 'P915', 'Q64'] [{'concept': 'Q201658'}, 'P915', 'Q64']
SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { VALUES ( ?s ) { ( ontology:Q838948 ) ( ontology:Q201658 ) } . ?p rdf:type ?s }
action count
action union
action filter_type
action find_reverse
entity Berlin
relation filming location
type work of art
action filter_type
action find_reverse
entity Berlin
relation filming location
type film genre
[{'concept': 'work of art'}, 'filming location', 'Berlin'] [{'concept': 'film genre'}, 'filming location', 'Berlin'] [{'concept': 'work of art'}, 'filming location', 'Berlin'] [{'concept': 'film genre'}, 'filming location', 'Berlin']
SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { VALUES ( ?s ) { ( ontology:work_of_art ) ( ontology:film_genre ) } . ?p rdf:type ?s }
[]
work of art film genre
SYSTEM
125
Q2056924 Q908713 Q638386 Q265440 Q314942 Q478536 Q17851365 Q15073893 Q16249045 Q375454 Q15742101 Q732022 Q11967418 Q1197465 Q473861 Q5890 Q560123 Q2919862 Q673627 Q928508 Q15124497 Q152857 Q166696 Q157879 Q14949832 Q15268063 Q156519 Q10307713 Q16838029 Q3410898 Q156608 Q5896770 Q831506 Q2031752 Q5952747 Q17515125 Q4407383 Q188159 Q173945 Q204398 Q695982 Q468697 Q154817 Q1218821 Q877990 Q2528052 Q15715216 Q1269017 Q1773078 Q2631364 Q14949927 Q313764 Q1170124 Q288173 Q156911 Q18218448 Q554063 Q875197 Q821420 Q160306 Q18786433 Q540624 Q507285 Q200765 Q13534360 Q1269691 Q15040678 Q498287 Q2497101 Q1475617 Q322872 Q18169872 Q1398997 Q1735808 Q179017 Q1283810 Q151599 Q158759 Q159063 Q14949865 Q566308 Q14071865 Q657477 Q2524426 Q17410299 Q1659480 Q157975 Q457003 Q466485 Q13424245 Q2019620 Q153484 Q19839849 Q699490 Q1475778 Q18067135 Q153882 Q7622329 Q16938850 Q153723 Q1757025 Q1211871 Q107226 Q495924 Q3943872 Q4142083 Q507461 Q1169101 Q480273 Q329007 Q656166 Q1049139 Q1203252 Q443140 Q21065355 Q672402 Q28936 Q3575602 Q878124 Q163817 Q1052682 Q3016883 Q15040771 Q15991166 Q14775069
(c(Q838948),P915,Q64) (c(Q201658),P915,Q64) (c(Q838948),P915,Q64) (c(Q201658),P915,Q64)
action count
action union
action filter_type
action find_reverse
entity Q64
relation P915
type Q838948
action filter_type
action find_reverse
entity Q64
relation P915
type Q201658
[ANSWER]
[{'concept': 'Q838948'}, 'P915', 'Q64'] [{'concept': 'Q201658'}, 'P915', 'Q64'] [{'concept': 'Q838948'}, 'P915', 'Q64'] [{'concept': 'Q201658'}, 'P915', 'Q64']
SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { VALUES ( ?s ) { ( ontology:Q838948 ) ( ontology:Q201658 ) } . ?p rdf:type ?s }
A Dandy in Aspic The Counterfeit Traitor Flightplan Learning to Lie Pandorum Three Who Am I – No System is Safe Wetlands Unfinished Business Agent 3S3, Massacre in the Sun Hilde Warren und der Tod Mr. Nobody Must Have Been Love Death in the Red Jaguar Killer Condom V for Vendetta A Friend of Mine Æon Flux The International Ten Seconds to Hell The Mirror of the World Downfall The Baader Meinhof Complex The Ghost Writer Fedz Fack ju Göhte Around the World in 80 Days The Hunger Games: Mockingjay – Part 2 The Future of Emily Puppe, Icke & der Dicke The Bourne Supremacy Honor Bound The Tigress Ripley's Game The Physician Race Monuments Men A Dangerous Method A Foreign Affair Octopussy Querelle Run Lola Run Good Bye, Lenin! The Last Horse Carriage in Berlin Heimat Virus Undead Hitman: Agent 47 Death and Diamonds Possession 1914 Should We Be Silent? The Tin Drum The Quiller Memorandum Mission: Impossible III Wings of Desire Citizenfour Lola and Billy the Kid Teenage Wolfpack The Berliner Das Wilde Leben Victoria Germany, Year Zero Lumière and Company The Dust of Time The Night Belongs to Us Demons The Voices Hansel and Gretel: Witch Hunters Under the Bridges The Young Lions The Last Train Le triangle de feu Fay Grim The Foreigner The Plot to Assassinate Hitler One, Two, Three Metropolis Unknown The Reader Docks of Hamburg It Happened in Broad Daylight Meet Me in Montenegro Faraway, So Close! Viktor Vogel – Commercial Man Point Break The Return of Doctor Mabuse The Edukators The Legend of Paul and Paula Chasing Liberty A Five Star Life De Sade Resident Evil Alone in Berlin The Marriage of Maria Braun A Coffee in Berlin Bridge of Spies The Lives of Others Strauss Is Playing Today Praia do Futuro Inglourious Basterds Summer Palace Die Christel von der Post The Bourne Ultimatum The Big Lift The Berlin File The Hunger Games: Mockingjay – Part 1 Equilibrium Dr. M We Are the Night Comedian Harmonists Coming Out Spy Game Don 2 Antibodies Look Who's Back For a Moment Cloud Atlas The Fifth Estate Summer in Berlin The Squeaker The Keys to the House Passion Figures of the Night Little Thirteen Clouds of Sils Maria
125
action count
action union
action filter_type
action find_reverse
entity Berlin
relation filming location
type work of art
action filter_type
action find_reverse
entity Berlin
relation filming location
type film genre
[{'concept': 'work of art'}, 'filming location', 'Berlin'] [{'concept': 'film genre'}, 'filming location', 'Berlin'] [{'concept': 'work of art'}, 'filming location', 'Berlin'] [{'concept': 'film genre'}, 'filming location', 'Berlin']
SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { VALUES ( ?s ) { ( ontology:work_of_art ) ( ontology:film_genre ) } . ?p rdf:type ?s }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q371257 Q18412361
P19 P20
Q56061
USER
Which administrative territories were Herman-Walther Frey born in or did the demise of Giuseppe Di Cristina occur ?
OR((Q18412361,P19,c(Q56061)), (Q371257,P20,c(Q56061)))
action filter_type
action union
action find
entity Q18412361
relation P19
action find
entity Q371257
relation P20
type Q56061
{'OR': [['Q18412361', 'P19', {'concept': 'Q56061'}], ['Q371257', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q18412361 property:P19 ?m } UNION { resource:Q371257 property:P20 ?m } } . ?m rdf:type ontology:Q56061 }
Giuseppe Di Cristina Herman-Walther Frey
action filter_type
action union
action find
entity Herman-Walther Frey
relation place of birth
action find
entity Giuseppe Di Cristina
relation place of death
type administrative territorial entity
{'OR': [['Herman-Walther Frey', 'place of birth', {'concept': 'administrative territorial entity'}], ['Giuseppe Di Cristina', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Herman-Walther_Frey property:place_of_birth ?m } UNION { resource:Giuseppe_Di_Cristina property:place_of_death ?m } } . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q2656
SYSTEM
Berlin, Palermo
Q64 Q2656
OR((Q18412361,P19,c(Q56061)), (Q371257,P20,c(Q56061)))
action filter_type
action union
action find
entity Q18412361
relation P19
action find
entity Q371257
relation P20
type Q56061
Herman-Walther Frey were born in occur rence [ANSWERS]
{'OR': [['Q18412361', 'P19', {'concept': 'Q56061'}], ['Q371257', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q18412361 property:P19 ?m } UNION { resource:Q371257 property:P20 ?m } } . ?m rdf:type ontology:Q56061 }
Berlin Palermo
Herman-Walther Frey were born in occur rence Berlin and Palermo
Berlin Palermo
action filter_type
action union
action find
entity Herman-Walther Frey
relation place of birth
action find
entity Giuseppe Di Cristina
relation place of death
type administrative territorial entity
{'OR': [['Herman-Walther Frey', 'place of birth', {'concept': 'administrative territorial entity'}], ['Giuseppe Di Cristina', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Herman-Walther_Frey property:place_of_birth ?m } UNION { resource:Giuseppe_Di_Cristina property:place_of_death ?m } } . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q64 Q2656
P127
Q483110
USER
Which stadia are owned by Berlin and Palermo ?
(c(Q483110),P127,Q64) (c(Q483110),P127,Q2656)
action union
action filter_type
action find_reverse
entity Q64
relation P127
type Q483110
action filter_type
action find_reverse
entity Q2656
relation P127
type Q483110
[{'concept': 'Q483110'}, 'P127', 'Q64'] [{'concept': 'Q483110'}, 'P127', 'Q2656']
SELECT DISTINCT ?j WHERE { VALUES ( ?f ) { ( resource:Q64 ) ( resource:Q2656 ) } . ?j property:P127 ?f }
Berlin Palermo
action union
action filter_type
action find_reverse
entity Berlin
relation owned by
type stadium
action filter_type
action find_reverse
entity Palermo
relation owned by
type stadium
[{'concept': 'stadium'}, 'owned by', 'Berlin'] [{'concept': 'stadium'}, 'owned by', 'Palermo']
SELECT DISTINCT ?j WHERE { VALUES ( ?f ) { ( resource:Berlin ) ( resource:Palermo ) } . ?j property:owned_by ?f }
[]
stadium
Q176074 Q880881 Q28500
SYSTEM
Poststadion, Mommsenstadion, Stadio Renzo Barbera
Q749172 Q656063 Q880881 Q176074 Q28500
(c(Q483110),P127,Q64) (c(Q483110),P127,Q2656)
action union
action filter_type
action find_reverse
entity Q64
relation P127
type Q483110
action filter_type
action find_reverse
entity Q2656
relation P127
type Q483110
[ANSWERS] are owned by Berlin and Palermo
[{'concept': 'Q483110'}, 'P127', 'Q64'] [{'concept': 'Q483110'}, 'P127', 'Q2656']
SELECT DISTINCT ?j WHERE { VALUES ( ?f ) { ( resource:Q64 ) ( resource:Q2656 ) } . ?j property:P127 ?f }
Stadion An der Alten Försterei Friedrich-Ludwig-Jahn-Sportpark Mommsenstadion Poststadion Stadio Renzo Barbera
Poststadion, Mommsenstadion and Stadio Renzo Barbera are owned by Berlin and Palermo
Poststadion Mommsenstadion Stadio Renzo Barbera
action union
action filter_type
action find_reverse
entity Berlin
relation owned by
type stadium
action filter_type
action find_reverse
entity Palermo
relation owned by
type stadium
[{'concept': 'stadium'}, 'owned by', 'Berlin'] [{'concept': 'stadium'}, 'owned by', 'Palermo']
SELECT DISTINCT ?j WHERE { VALUES ( ?f ) { ( resource:Berlin ) ( resource:Palermo ) } . ?j property:owned_by ?f }
[]