Simple Question (Direct)
Simple Question
Q1506995
P106
Q12737077
USER
What are the job of George Blake ?
(Q1506995,P106,c(Q12737077))
action filter_type
action find
entity Q1506995
relation P106
type Q12737077
['Q1506995', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q1506995 property:P106 ?z }
George Blake
action filter_type
action find
entity George Blake
relation occupation
type occupation
['George Blake', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:George_Blake property:occupation ?z }
[]
occupation
Q13414980 Q13382460
SYSTEM
Australian-rules footballer, marathon runner
Q13414980 Q13382460
(Q1506995,P106,c(Q12737077))
action filter_type
action find
entity Q1506995
relation P106
type Q12737077
The job of George Blake are an [ANSWERS]
['Q1506995', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q1506995 property:P106 ?z }
Australian-rules footballer marathon runner
The job of George Blake are an Australian-rules footballer and marathon runner
Australian-rules footballer marathon runner
action filter_type
action find
entity George Blake
relation occupation
type occupation
['George Blake', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:George_Blake property:occupation ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1506995
P2416
Q31629
USER
Which type of sport did George Blake participate in ?
(Q1506995,P2416,c(Q31629))
action filter_type
action find
entity Q1506995
relation P2416
type Q31629
['Q1506995', 'P2416', {'concept': 'Q31629'}]
SELECT DISTINCT ?x WHERE { resource:Q1506995 property:P2416 ?x . ?x rdf:type ontology:Q31629 }
George Blake
action filter_type
action find
entity George Blake
relation sports discipline competed in
type type of sport
['George Blake', 'sports discipline competed in', {'concept': 'type of sport'}]
SELECT DISTINCT ?x WHERE { resource:George_Blake property:sports_discipline_competed_in ?x . ?x rdf:type ontology:type_of_sport }
[]
type of sport
Q40244
SYSTEM
marathon
Q40244
(Q1506995,P2416,c(Q31629))
action filter_type
action find
entity Q1506995
relation P2416
type Q31629
George Blake participated in [ANSWER]
['Q1506995', 'P2416', {'concept': 'Q31629'}]
SELECT DISTINCT ?x WHERE { resource:Q1506995 property:P2416 ?x . ?x rdf:type ontology:Q31629 }
marathon
George Blake participated in marathon
marathon
action filter_type
action find
entity George Blake
relation sports discipline competed in
type type of sport
['George Blake', 'sports discipline competed in', {'concept': 'type of sport'}]
SELECT DISTINCT ?x WHERE { resource:George_Blake property:sports_discipline_competed_in ?x . ?x rdf:type ontology:type_of_sport }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q372053
Q31629
USER
And how about Daniel Woodgate?
(Q372053,P2416,c(Q31629))
action filter_type
action find
entity Q372053
relation P2416
type Q31629
['Q372053', 'P2416', {'concept': 'Q31629'}]
SELECT DISTINCT ?x WHERE { resource:Q372053 property:P2416 ?x . ?x rdf:type ontology:Q31629 }
Daniel Woodgate
action filter_type
action find
entity Daniel Woodgate
relation sports discipline competed in
type type of sport
['Daniel Woodgate', 'sports discipline competed in', {'concept': 'type of sport'}]
SELECT DISTINCT ?x WHERE { resource:Daniel_Woodgate property:sports_discipline_competed_in ?x . ?x rdf:type ontology:type_of_sport }
[]
type of sport
Q40244
SYSTEM
marathon
Q40244
(Q372053,P2416,c(Q31629))
action filter_type
action find
entity Q372053
relation P2416
type Q31629
[ANSWER]
['Q372053', 'P2416', {'concept': 'Q31629'}]
SELECT DISTINCT ?x WHERE { resource:Q372053 property:P2416 ?x . ?x rdf:type ontology:Q31629 }
marathon
marathon
action filter_type
action find
entity Daniel Woodgate
relation sports discipline competed in
type type of sport
['Daniel Woodgate', 'sports discipline competed in', {'concept': 'type of sport'}]
SELECT DISTINCT ?x WHERE { resource:Daniel_Woodgate property:sports_discipline_competed_in ?x . ?x rdf:type ontology:type_of_sport }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P144
Q502895 Q1001378 Q95074
USER
Which people are approximately 1 cinematic techniques and fictional characters based on ?
(c(Q1001378)|c(Q95074),P144,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q1001378
action find_reverse_tuple_counts
relation P144
type Q502895
type Q95074
value 1
[[{'concept': 'Q1001378'}, {'concept': 'Q95074'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?q ) WHERE { VALUES ( ?p ) { ( ontology:Q1001378 ) ( ontology:Q95074 ) } . ?o rdf:type ?p } GROUP BY ?t } . FILTER ( ?q = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation based on
type common name
type cinematic technique
action find_reverse_tuple_counts
relation based on
type common name
type fictional character
value 1
[[{'concept': 'cinematic technique'}, {'concept': 'fictional character'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?q ) WHERE { VALUES ( ?p ) { ( ontology:cinematic_technique ) ( ontology:fictional_character ) } . ?o rdf:type ?p } GROUP BY ?t } . FILTER ( ?q = 1 ) }
[]
common name cinematic technique fictional character
Q76 Q207 Q9640
SYSTEM
Barack Obama, George W. Bush, Lyndon B. Johnson
Q1093885 Q93839 Q744183 Q207 Q6748293 Q357498 Q724506 Q434317 Q76 Q47216 Q1385693 Q14544902 Q192218 Q3839050 Q6184230 Q9640 Q182788 Q309643 Q36268 Q152779 Q549242 Q7668479 Q521095
(c(Q1001378)|c(Q95074),P144,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q1001378
action find_reverse_tuple_counts
relation P144
type Q502895
type Q95074
value 1
[ANSWERS] are approximately 1 cinematic techniques and fictional characters based on
[[{'concept': 'Q1001378'}, {'concept': 'Q95074'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?q ) WHERE { VALUES ( ?p ) { ( ontology:Q1001378 ) ( ontology:Q95074 ) } . ?o rdf:type ?p } GROUP BY ?t } . FILTER ( ?q = 1 ) }
Hathi Gary M. Heidnik Charles de Batz-Castelmore d'Artagnan George W. Bush Mandy Grunwald Gary Ridgway John E. Douglas Dee Dee Myers Barack Obama Condoleezza Rice Jerry Brudos Henri d'Aramitz Ted Bundy Lucy Hay, Countess of Carlisle Jerry Parr Lyndon B. Johnson Newt Gingrich Ed Gein Brigitte Bardot Louise Brooks Edmund Kemper T. Lewis Robert M. Morgenthau
Barack Obama, George W. Bush and Lyndon B. Johnson are approximately 1 cinematic techniques and fictional characters based on
Barack Obama George W. Bush Lyndon B. Johnson
action approx
action union
action find_reverse_tuple_counts
relation based on
type common name
type cinematic technique
action find_reverse_tuple_counts
relation based on
type common name
type fictional character
value 1
[[{'concept': 'cinematic technique'}, {'concept': 'fictional character'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?q ) WHERE { VALUES ( ?p ) { ( ontology:cinematic_technique ) ( ontology:fictional_character ) } . ?o rdf:type ?p } GROUP BY ?t } . FILTER ( ?q = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3450545 Q40244
P138
Q1190554
USER
Which events are marathon or rue d'Ulm named after ?
OR((Q40244,P138,c(Q1190554)), (Q3450545,P138,c(Q1190554)))
action filter_type
action union
action find
entity Q40244
relation P138
action find
entity Q3450545
relation P138
type Q1190554
{'OR': [['Q40244', 'P138', {'concept': 'Q1190554'}], ['Q3450545', 'P138', {'concept': 'Q1190554'}]]}
SELECT DISTINCT ?f WHERE { { ?b property:P138 ?f . VALUES ( ?b ) { ( resource:Q40244 ) ( resource:Q3450545 ) } } . ?f rdf:type ontology:Q1190554 }
rue d'Ulm marathon
action filter_type
action union
action find
entity marathon
relation named after
action find
entity rue d'Ulm
relation named after
type event
{'OR': [['marathon', 'named after', {'concept': 'event'}], ["rue d'Ulm", 'named after', {'concept': 'event'}]]}
SELECT DISTINCT ?f WHERE { { ?b property:named_after ?f . VALUES ( ?b ) { ( resource:marathon ) ( resource:rue_d'Ulm ) } } . ?f rdf:type ontology:event }
[]
event
Q159072 Q31900
SYSTEM
Battle of Ulm, Battle of Marathon
Q159072 Q31900
OR((Q40244,P138,c(Q1190554)), (Q3450545,P138,c(Q1190554)))
action filter_type
action union
action find
entity Q40244
relation P138
action find
entity Q3450545
relation P138
type Q1190554
Marathon or rue d 'Ulm are named for [ANSWERS]
{'OR': [['Q40244', 'P138', {'concept': 'Q1190554'}], ['Q3450545', 'P138', {'concept': 'Q1190554'}]]}
SELECT DISTINCT ?f WHERE { { ?b property:P138 ?f . VALUES ( ?b ) { ( resource:Q40244 ) ( resource:Q3450545 ) } } . ?f rdf:type ontology:Q1190554 }
Battle of Ulm Battle of Marathon
Marathon or rue d 'Ulm are named for Battle of Ulm and Battle of Marathon
Battle of Ulm Battle of Marathon
action filter_type
action union
action find
entity marathon
relation named after
action find
entity rue d'Ulm
relation named after
type event
{'OR': [['marathon', 'named after', {'concept': 'event'}], ["rue d'Ulm", 'named after', {'concept': 'event'}]]}
SELECT DISTINCT ?f WHERE { { ?b property:named_after ?f . VALUES ( ?b ) { ( resource:marathon ) ( resource:rue_d'Ulm ) } } . ?f rdf:type ontology:event }
[]
Clarification
Simple Question|Single Entity|Indirect
Q159072
P276
Q56061
USER
Where is that event located ?
(Q159072,P276,c(Q56061))
action filter_type
action find
entity Q159072
relation P276
type Q56061
['Q159072', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q159072 property:P276 ?z . ?z rdf:type ontology:Q56061 }
Battle of Ulm
action filter_type
action find
entity Battle of Ulm
relation location
type administrative territorial entity
['Battle of Ulm', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Battle_of_Ulm property:location ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q31900
SYSTEM
Did you mean Battle of Marathon ?
Q159072 Q31900
(Q159072,P276,c(Q56061)) (Q31900,P276,c(Q56061))
[ANSWER]
['Q159072', 'P276', {'concept': 'Q56061'}] ['Q31900', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q159072 property:P276 ?z . ?z rdf:type ontology:Q56061 }
Battle of Ulm Battle of Marathon
Did you mean Battle of Marathon ?
Battle of Marathon
['Battle of Ulm', 'location', {'concept': 'administrative territorial entity'}] ['Battle of Marathon', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Battle_of_Ulm property:location ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Battle of Ulm. Could you tell me the answer for that?
(Q159072,P276,c(Q56061))
Q159072
['Q159072', 'P276', {'concept': 'Q56061'}]
['Battle of Ulm', 'location', {'concept': 'administrative territorial entity'}]
[]
Q3012
SYSTEM
Ulm
Q3012
(Q159072,P276,c(Q56061))
action filter_type
action find
entity Q159072
relation P276
type Q56061
That event is located in [ANSWER]
['Q159072', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q159072 property:P276 ?z . ?z rdf:type ontology:Q56061 }
Ulm
That event is located in Ulm
Ulm
action filter_type
action find
entity Battle of Ulm
relation location
type administrative territorial entity
['Battle of Ulm', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Battle_of_Ulm property:location ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P190
Q56061 Q20667921
USER
How many administrative territories and french administrative divisions are twin city of that administrative territory ?
(c(Q56061),P190,Q3012) (c(Q20667921),P190,Q3012) (c(Q56061),P190,Q3012) (c(Q20667921),P190,Q3012)
action count
action union
action filter_type
action find_reverse
entity Q3012
relation P190
type Q56061
action filter_type
action find_reverse
entity Q3012
relation P190
type Q20667921
[{'concept': 'Q56061'}, 'P190', 'Q3012'] [{'concept': 'Q20667921'}, 'P190', 'Q3012'] [{'concept': 'Q56061'}, 'P190', 'Q3012'] [{'concept': 'Q20667921'}, 'P190', 'Q3012']
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { { ?n property:P190 resource:Q3012 . ?n rdf:type ontology:Q56061 } UNION { ?n property:P190 resource:Q3012 . ?n rdf:type ontology:Q20667921 } }
action count
action union
action filter_type
action find_reverse
entity Ulm
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Ulm
relation sister city
type type of french administrative division
[{'concept': 'administrative territorial entity'}, 'sister city', 'Ulm'] [{'concept': 'type of french administrative division'}, 'sister city', 'Ulm'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Ulm'] [{'concept': 'type of french administrative division'}, 'sister city', 'Ulm']
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { { ?n property:sister_city resource:Ulm . ?n rdf:type ontology:administrative_territorial_entity } UNION { ?n property:sister_city resource:Ulm . ?n rdf:type ontology:type_of_french_administrative_division } }
[]
administrative territorial entity type of french administrative division
SYSTEM
2 administrative territories and 1 french administrative divisions
Q1780 Q1026296 Q275438
(c(Q56061),P190,Q3012) (c(Q20667921),P190,Q3012) (c(Q56061),P190,Q3012) (c(Q20667921),P190,Q3012)
action count
action union
action filter_type
action find_reverse
entity Q3012
relation P190
type Q56061
action filter_type
action find_reverse
entity Q3012
relation P190
type Q20667921
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q3012'] [{'concept': 'Q20667921'}, 'P190', 'Q3012'] [{'concept': 'Q56061'}, 'P190', 'Q3012'] [{'concept': 'Q20667921'}, 'P190', 'Q3012']
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { { ?n property:P190 resource:Q3012 . ?n rdf:type ontology:Q56061 } UNION { ?n property:P190 resource:Q3012 . ?n rdf:type ontology:Q20667921 } }
Bratislava Jinotega Argenton-sur-Creuse
2 administrative territories and 1 french administrative divisions
action count
action union
action filter_type
action find_reverse
entity Ulm
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Ulm
relation sister city
type type of french administrative division
[{'concept': 'administrative territorial entity'}, 'sister city', 'Ulm'] [{'concept': 'type of french administrative division'}, 'sister city', 'Ulm'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Ulm'] [{'concept': 'type of french administrative division'}, 'sister city', 'Ulm']
SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { { ?n property:sister_city resource:Ulm . ?n rdf:type ontology:administrative_territorial_entity } UNION { ?n property:sister_city resource:Ulm . ?n rdf:type ontology:type_of_french_administrative_division } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19574547 Q31900
P276
Q56061
USER
Which administrative territories are the place where Battle of Marathon or Turfberrie are located ?
OR((Q31900,P276,c(Q56061)), (Q19574547,P276,c(Q56061)))
action filter_type
action union
action find
entity Q31900
relation P276
action find
entity Q19574547
relation P276
type Q56061
{'OR': [['Q31900', 'P276', {'concept': 'Q56061'}], ['Q19574547', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q31900 property:P276 ?v } UNION { resource:Q19574547 property:P276 ?v } } . ?v rdf:type ontology:Q56061 }
Turfberrie Battle of Marathon
action filter_type
action union
action find
entity Battle of Marathon
relation location
action find
entity Turfberrie
relation location
type administrative territorial entity
{'OR': [['Battle of Marathon', 'location', {'concept': 'administrative territorial entity'}], ['Turfberrie', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Battle_of_Marathon property:location ?v } UNION { resource:Turfberrie property:location ?v } } . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q212150 Q2789907
SYSTEM
Marathon, Rucphen
Q212150 Q2789907
OR((Q31900,P276,c(Q56061)), (Q19574547,P276,c(Q56061)))
action filter_type
action union
action find
entity Q31900
relation P276
action find
entity Q19574547
relation P276
type Q56061
[ANSWERS] are the place where Battle of Marathon or Turfberrie are located
{'OR': [['Q31900', 'P276', {'concept': 'Q56061'}], ['Q19574547', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q31900 property:P276 ?v } UNION { resource:Q19574547 property:P276 ?v } } . ?v rdf:type ontology:Q56061 }
Marathon Rucphen
Marathon and Rucphen are the place where Battle of Marathon or Turfberrie are located
Marathon Rucphen
action filter_type
action union
action find
entity Battle of Marathon
relation location
action find
entity Turfberrie
relation location
type administrative territorial entity
{'OR': [['Battle of Marathon', 'location', {'concept': 'administrative territorial entity'}], ['Turfberrie', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Battle_of_Marathon property:location ?v } UNION { resource:Turfberrie property:location ?v } } . ?v rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P190
Q1048835 Q15617994
USER
How many political territories and administrative territories are twin cities of that administrative territory ?
(Q212150,P190,c(Q1048835)) (Q212150,P190,c(Q15617994)) (Q212150,P190,c(Q1048835)) (Q212150,P190,c(Q15617994)) (Q2789907,P190,c(Q1048835)) (Q2789907,P190,c(Q15617994))
['Q212150', 'P190', {'concept': 'Q1048835'}] ['Q212150', 'P190', {'concept': 'Q15617994'}] ['Q212150', 'P190', {'concept': 'Q1048835'}] ['Q212150', 'P190', {'concept': 'Q15617994'}] ['Q2789907', 'P190', {'concept': 'Q1048835'}] ['Q2789907', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q6754995 property:P190 ?z } UNION { resource:Q6754995 property:P190 ?y } UNION { resource:Q6754995 property:P190 ?z } UNION { resource:Q6754995 property:P190 ?y } UNION { resource:Q9862 property:P190 ?z } UNION { resource:Q9862 property:P190 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 }
['Marathon', 'sister city', {'concept': 'political territorial entity'}] ['Marathon', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Marathon', 'sister city', {'concept': 'political territorial entity'}] ['Marathon', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Rucphen', 'sister city', {'concept': 'political territorial entity'}] ['Rucphen', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Marathon property:sister_city ?z } UNION { resource:Marathon property:sister_city ?y } UNION { resource:Marathon property:sister_city ?z } UNION { resource:Marathon property:sister_city ?y } UNION { resource:Rucphen property:sister_city ?z } UNION { resource:Rucphen property:sister_city ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
political territorial entity designation for an administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q212150
SYSTEM
Did you mean Marathon ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q6754995 property:P190 ?z } UNION { resource:Q6754995 property:P190 ?y } UNION { resource:Q6754995 property:P190 ?z } UNION { resource:Q6754995 property:P190 ?y } UNION { resource:Q9862 property:P190 ?z } UNION { resource:Q9862 property:P190 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 }
Did you mean Marathon ?
Marathon
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Marathon property:sister_city ?z } UNION { resource:Marathon property:sister_city ?y } UNION { resource:Marathon property:sister_city ?z } UNION { resource:Marathon property:sister_city ?y } UNION { resource:Rucphen property:sister_city ?z } UNION { resource:Rucphen property:sister_city ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q212150,P190,c(Q1048835)) (Q212150,P190,c(Q15617994)) (Q212150,P190,c(Q1048835)) (Q212150,P190,c(Q15617994)) (Q2789907,P190,c(Q1048835)) (Q2789907,P190,c(Q15617994))
['Q212150', 'P190', {'concept': 'Q1048835'}] ['Q212150', 'P190', {'concept': 'Q15617994'}] ['Q212150', 'P190', {'concept': 'Q1048835'}] ['Q212150', 'P190', {'concept': 'Q15617994'}] ['Q2789907', 'P190', {'concept': 'Q1048835'}] ['Q2789907', 'P190', {'concept': 'Q15617994'}]
['Marathon', 'sister city', {'concept': 'political territorial entity'}] ['Marathon', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Marathon', 'sister city', {'concept': 'political territorial entity'}] ['Marathon', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Rucphen', 'sister city', {'concept': 'political territorial entity'}] ['Rucphen', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1 political territories and 1 administrative territories
Q58894 Q68744
(Q212150,P190,c(Q1048835)) (Q212150,P190,c(Q15617994)) (Q212150,P190,c(Q1048835)) (Q212150,P190,c(Q15617994)) (Q2789907,P190,c(Q1048835)) (Q2789907,P190,c(Q15617994))
[ANSWER]
['Q212150', 'P190', {'concept': 'Q1048835'}] ['Q212150', 'P190', {'concept': 'Q15617994'}] ['Q212150', 'P190', {'concept': 'Q1048835'}] ['Q212150', 'P190', {'concept': 'Q15617994'}] ['Q2789907', 'P190', {'concept': 'Q1048835'}] ['Q2789907', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q6754995 property:P190 ?z } UNION { resource:Q6754995 property:P190 ?y } UNION { resource:Q6754995 property:P190 ?z } UNION { resource:Q6754995 property:P190 ?y } UNION { resource:Q9862 property:P190 ?z } UNION { resource:Q9862 property:P190 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 }
Santa Maria Capua Vetere Xiamen
1 political territories and 1 administrative territories
['Marathon', 'sister city', {'concept': 'political territorial entity'}] ['Marathon', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Marathon', 'sister city', {'concept': 'political territorial entity'}] ['Marathon', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Rucphen', 'sister city', {'concept': 'political territorial entity'}] ['Rucphen', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Marathon property:sister_city ?z } UNION { resource:Marathon property:sister_city ?y } UNION { resource:Marathon property:sister_city ?z } UNION { resource:Marathon property:sister_city ?y } UNION { resource:Rucphen property:sister_city ?z } UNION { resource:Rucphen property:sister_city ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3601007 Q40244
P138 P607
Q1190554
USER
Which events are namesakes of marathon or did Arthur Trudeau take part in ?
OR((Q40244,P138,c(Q1190554)), (Q3601007,P607,c(Q1190554)))
action filter_type
action union
action find
entity Q40244
relation P138
action find
entity Q3601007
relation P607
type Q1190554
{'OR': [['Q40244', 'P138', {'concept': 'Q1190554'}], ['Q3601007', 'P607', {'concept': 'Q1190554'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q40244 property:P138 ?k } UNION { resource:Q3601007 property:P607 ?k } } . ?k rdf:type ontology:Q1190554 }
Arthur Trudeau marathon
action filter_type
action union
action find
entity marathon
relation named after
action find
entity Arthur Trudeau
relation conflict
type event
{'OR': [['marathon', 'named after', {'concept': 'event'}], ['Arthur Trudeau', 'conflict', {'concept': 'event'}]]}
SELECT DISTINCT ?k WHERE { { { resource:marathon property:named_after ?k } UNION { resource:Arthur_Trudeau property:conflict ?k } } . ?k rdf:type ontology:event }
[]
event
Q31900 Q4872081
SYSTEM
Battle of Marathon, Battle of Pork Chop Hill
Q31900 Q4872081
OR((Q40244,P138,c(Q1190554)), (Q3601007,P607,c(Q1190554)))
action filter_type
action union
action find
entity Q40244
relation P138
action find
entity Q3601007
relation P607
type Q1190554
[ANSWERS] are namesakes of marathon or did Arthur Trudeau take part in
{'OR': [['Q40244', 'P138', {'concept': 'Q1190554'}], ['Q3601007', 'P607', {'concept': 'Q1190554'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q40244 property:P138 ?k } UNION { resource:Q3601007 property:P607 ?k } } . ?k rdf:type ontology:Q1190554 }
Battle of Marathon Battle of Pork Chop Hill
Battle of Marathon and Battle of Pork Chop Hill are namesakes of marathon or did Arthur Trudeau take part in
Battle of Marathon Battle of Pork Chop Hill
action filter_type
action union
action find
entity marathon
relation named after
action find
entity Arthur Trudeau
relation conflict
type event
{'OR': [['marathon', 'named after', {'concept': 'event'}], ['Arthur Trudeau', 'conflict', {'concept': 'event'}]]}
SELECT DISTINCT ?k WHERE { { { resource:marathon property:named_after ?k } UNION { resource:Arthur_Trudeau property:conflict ?k } } . ?k rdf:type ontology:event }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q538868 Q207
P991
Q40231
USER
Which elections were George W. Bush or Joe Manchin elected from ?
OR((c(Q40231),P991,Q207), (c(Q40231),P991,Q538868))
action filter_type
action union
action find_reverse
entity Q207
relation P991
action find_reverse
entity Q538868
relation P991
type Q40231
{'OR': [[{'concept': 'Q40231'}, 'P991', 'Q207'], [{'concept': 'Q40231'}, 'P991', 'Q538868']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q40231 . { { ?f property:P991 resource:Q207 } UNION { ?f property:P991 resource:Q538868 } } }
Joe Manchin George W. Bush
action filter_type
action union
action find_reverse
entity George W. Bush
relation successful candidate
action find_reverse
entity Joe Manchin
relation successful candidate
type election
{'OR': [[{'concept': 'election'}, 'successful candidate', 'George W. Bush'], [{'concept': 'election'}, 'successful candidate', 'Joe Manchin']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:election . { { ?f property:successful_candidate resource:George_W._Bush } UNION { ?f property:successful_candidate resource:Joe_Manchin } } }
[]
election
Q7892992 Q16959363 Q7892856 Q7892921 Q7892666 Q7892948 Q7314688 Q7892771 Q7892796 Q7893140
SYSTEM
Some of them are United States presidential election in Ohio, 2000, United States presidential election in Virginia, 2000, United States presidential election in Minnesota, 2004, United States presidential election in Nebraska, 2004, United States presidential election in Arizona, 2004, United States presidential election in New Mexico, 2000, Republican Party presidential primaries, 2004, United States presidential election in Idaho, 2004, United States presidential election in Kansas, 2004, United States presidential election in Wisconsin, 2000
Q7892757 Q7892943 Q16959363 Q7892945 Q7892863 Q7892758 Q7893116 Q7893118 Q16959315 Q279380 Q7892948 Q7892950 Q7892811 Q7892813 Q7893105 Q7893106 Q7893066 Q16959347 Q7893085 Q7892670 Q7893081 Q7892672 Q7892833 Q7892804 Q7892921 Q7893094 Q7892925 Q7892926 Q7893079 Q7892880 Q7892762 Q7892766 Q7892666 Q7892665 Q7892831 Q7893093 Q16966618 Q7893098 Q7892937 Q16959324 Q7893005 Q7892778 Q7892771 Q7314687 Q7892718 Q7892821 Q7892820 Q7314688 Q7892982 Q7892983 Q16959358 Q7892785 Q7892786 Q7893151 Q16959351 Q7893158 Q7892919 Q7892729 Q7892915 Q7892916 Q7892855 Q7892856 Q7893148 Q7892993 Q7892992 Q7892997 Q7892999 Q7893140 Q7893142 Q3586276 Q3586275 Q7892792 Q7892791 Q7892659 Q16959329 Q7892796 Q7892795 Q7892653 Q7892650 Q5640667 Q7892657 Q7892731 Q7892739 Q7892738 Q7892960 Q7892961 Q7892844 Q7892849 Q7893135 Q7893136 Q7893131 Q16959338 Q7892978 Q7892977 Q7892748 Q7986947 Q7892721 Q7986948 Q7892879 Q7893128 Q7893125 Q17092527
OR((c(Q40231),P991,Q207), (c(Q40231),P991,Q538868))
action filter_type
action union
action find_reverse
entity Q207
relation P991
action find_reverse
entity Q538868
relation P991
type Q40231
[ANSWERS]
{'OR': [[{'concept': 'Q40231'}, 'P991', 'Q207'], [{'concept': 'Q40231'}, 'P991', 'Q538868']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q40231 . { { ?f property:P991 resource:Q207 } UNION { ?f property:P991 resource:Q538868 } } }
United States presidential election in Georgia, 2000 United States presidential election in New Jersey, 2000 United States presidential election in Virginia, 2000 United States presidential election in New Jersey, 2004 United States presidential election in Mississippi, 2004 United States presidential election in Georgia, 2004 United States presidential election in Vermont, 2000 United States presidential election in Vermont, 2004 United States presidential election in Kentucky, 2000 United States presidential election in Illinois, 2004 United States presidential election in New Mexico, 2000 United States presidential election in New Mexico, 2004 United States presidential election in Louisiana, 2000 United States presidential election in Louisiana, 2004 United States presidential election in Utah, 2000 United States presidential election in Utah, 2004 United States presidential election in Pennsylvania, 2004 United States presidential election in Rhode Island, 2004 United States presidential election in South Dakota, 2000 United States presidential election in Arkansas, 2000 United States presidential election in South Carolina, 2004 United States presidential election in Arkansas, 2004 United States presidential election in Maryland, 2004 United States presidential election in Kentucky, 2004 United States presidential election in Nebraska, 2004 United States presidential election in Tennessee, 2000 United States presidential election in Nevada, 2004 United States presidential election in Nevada, 2000 United States presidential election in South Carolina, 2000 United States presidential election in Missouri, 2004 United States presidential election in Hawaii, 2000 United States presidential election in Hawaii, 2004 United States presidential election in Arizona, 2004 United States presidential election in Arizona, 2000 United States presidential election in Maryland, 2000 United States presidential election in Tennessee, 2004 United States presidential election in Michigan, 2000 United States presidential election in Texas, 2004 United States presidential election in New Hampshire, 2004 United States presidential election in Mississippi, 2000 United States presidential election in Oregon, 2004 United States presidential election in Illinois, 2000 United States presidential election in Idaho, 2004 Republican Party presidential primaries, 2000 United States presidential election in Colorado, 2000 United States presidential election in Maine, 2004 United States presidential election in Maine, 2000 Republican Party presidential primaries, 2004 United States presidential election in North Dakota, 2000 United States presidential election in North Dakota, 2004 United States presidential election in Texas, 2000 United States presidential election in Indiana, 2000 United States presidential election in Indiana, 2004 United States presidential election in Wyoming, 2004 United States presidential election in South Dakota, 2004 United States presidential election in the District of Columbia, 2004 United States presidential election in Nebraska, 2000 United States presidential election in Connecticut, 2000 United States presidential election in Montana, 2000 United States presidential election in Montana, 2004 United States presidential election in Minnesota, 2000 United States presidential election in Minnesota, 2004 United States presidential election in Wyoming, 2000 United States presidential election in Ohio, 2004 United States presidential election in Ohio, 2000 United States presidential election in Oklahoma, 2000 United States presidential election in Oklahoma, 2004 United States presidential election in Wisconsin, 2000 United States presidential election in Wisconsin, 2004 Texas gubernatorial election, 1998 Texas gubernatorial election, 1994 United States presidential election in Iowa, 2000 United States presidential election in Iowa, 2004 United States presidential election in Alaska, 2004 United States presidential election in New Hampshire, 2000 United States presidential election in Kansas, 2004 United States presidential election in Kansas, 2000 United States presidential election in Alabama, 2004 United States presidential election in Alabama, 2000 United States presidential election in California, 2004 United States presidential election in Alaska, 2000 United States presidential election in Connecticut, 2004 United States presidential election in Delaware, 2004 United States presidential election in Delaware, 2000 United States presidential election in New York, 2000 United States presidential election in New York, 2004 United States presidential election in Massachusetts, 2004 United States presidential election in Michigan, 2004 United States presidential election in West Virginia, 2000 United States presidential election in West Virginia, 2004 United States presidential election in Washington (state), 2004 United States presidential election in Oregon, 2000 United States presidential election in North Carolina, 2004 United States presidential election in North Carolina, 2000 United States presidential election in Florida, 2004 West Virginia gubernatorial election, 2004 United States presidential election in California, 2000 West Virginia gubernatorial election, 2008 United States presidential election in Missouri, 2000 United States presidential election in Washington, 2000 United States presidential election in Virginia, 2004 United States presidential election in Pennsylvania, 2000
George W. Bush or Joe Manchin were elected in United States presidential election in Ohio, 2000, United States presidential election in Virginia, 2000, United States presidential election in Minnesota, 2004, United States presidential election in Nebraska, 2004, United States presidential election in Arizona, 2004, United States presidential election in New Mexico, 2000, Republican Party presidential primaries, 2004, United States presidential election in Idaho, 2004, United States presidential election in Kansas, 2004 and United States presidential election in Wisconsin, 2000
United States presidential election in Ohio, 2000 United States presidential election in Virginia, 2000 United States presidential election in Minnesota, 2004 United States presidential election in Nebraska, 2004 United States presidential election in Arizona, 2004 United States presidential election in New Mexico, 2000 Republican Party presidential primaries, 2004 United States presidential election in Idaho, 2004 United States presidential election in Kansas, 2004 United States presidential election in Wisconsin, 2000
action filter_type
action union
action find_reverse
entity George W. Bush
relation successful candidate
action find_reverse
entity Joe Manchin
relation successful candidate
type election
{'OR': [[{'concept': 'election'}, 'successful candidate', 'George W. Bush'], [{'concept': 'election'}, 'successful candidate', 'Joe Manchin']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:election . { { ?f property:successful_candidate resource:George_W._Bush } UNION { ?f property:successful_candidate resource:Joe_Manchin } } }
[]