Simple Question (Direct)
Simple Question
Q675940
P39
Q12737077
USER
What was the position for which Rafi Eitan was appointed ?
(Q675940,P39,c(Q12737077))
action filter_type
action find
entity Q675940
relation P39
type Q12737077
['Q675940', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q675940 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Rafi Eitan
action filter_type
action find
entity Rafi Eitan
relation position held
type occupation
['Rafi Eitan', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Rafi_Eitan property:position_held ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q4047513
SYSTEM
Knesset member
Q4047513
(Q675940,P39,c(Q12737077))
action filter_type
action find
entity Q675940
relation P39
type Q12737077
[ANSWER]
['Q675940', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q675940 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Knesset member
Knesset member
Knesset member
action filter_type
action find
entity Rafi Eitan
relation position held
type occupation
['Rafi Eitan', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Rafi_Eitan property:position_held ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q675940
P937
Q56061
USER
Where did Rafi Eitan work ?
(Q675940,P937,c(Q56061))
action filter_type
action find
entity Q675940
relation P937
type Q56061
['Q675940', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q675940 property:P937 ?s . ?s rdf:type ontology:Q56061 }
Rafi Eitan
action filter_type
action find
entity Rafi Eitan
relation work location
type administrative territorial entity
['Rafi Eitan', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Rafi_Eitan property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1218
SYSTEM
Jerusalem
Q1218
(Q675940,P937,c(Q56061))
action filter_type
action find
entity Q675940
relation P937
type Q56061
Rafi Eitan worked in [ANSWER]
['Q675940', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q675940 property:P937 ?s . ?s rdf:type ontology:Q56061 }
Jerusalem
Rafi Eitan worked in Jerusalem
Jerusalem
action filter_type
action find
entity Rafi Eitan
relation work location
type administrative territorial entity
['Rafi Eitan', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Rafi_Eitan property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1608516 Q675940
P937
Q56061
USER
Or Herbert J. Drane?
OR((Q675940,P937,c(Q56061)), (Q1608516,P937,c(Q56061)))
action filter_type
action union
action find
entity Q675940
relation P937
action find
entity Q1608516
relation P937
type Q56061
{'OR': [['Q675940', 'P937', {'concept': 'Q56061'}], ['Q1608516', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?n WHERE { { VALUES ( ?k ) { ( resource:Q675940 ) ( resource:Q1608516 ) } . ?k property:P937 ?n } . ?n rdf:type ontology:Q56061 }
Herbert J. Drane Rafi Eitan
action filter_type
action union
action find
entity Rafi Eitan
relation work location
action find
entity Herbert J. Drane
relation work location
type administrative territorial entity
{'OR': [['Rafi Eitan', 'work location', {'concept': 'administrative territorial entity'}], ['Herbert J. Drane', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { VALUES ( ?k ) { ( resource:Rafi_Eitan ) ( resource:Herbert_J._Drane ) } . ?k property:work_location ?n } . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1218 Q37043
SYSTEM
Jerusalem, Tallahassee
Q1218 Q37043
OR((Q675940,P937,c(Q56061)), (Q1608516,P937,c(Q56061)))
action filter_type
action union
action find
entity Q675940
relation P937
action find
entity Q1608516
relation P937
type Q56061
[ANSWERS]
{'OR': [['Q675940', 'P937', {'concept': 'Q56061'}], ['Q1608516', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?n WHERE { { VALUES ( ?k ) { ( resource:Q675940 ) ( resource:Q1608516 ) } . ?k property:P937 ?n } . ?n rdf:type ontology:Q56061 }
Jerusalem Tallahassee
Jerusalem Tallahassee
action filter_type
action union
action find
entity Rafi Eitan
relation work location
action find
entity Herbert J. Drane
relation work location
type administrative territorial entity
{'OR': [['Rafi Eitan', 'work location', {'concept': 'administrative territorial entity'}], ['Herbert J. Drane', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { VALUES ( ?k ) { ( resource:Rafi_Eitan ) ( resource:Herbert_J._Drane ) } . ?k property:work_location ?n } . ?n rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7067486 Q675940
P27
Q15617994
USER
Which administrative territories are Rafi Eitan or Noël Emmanuel Limage a civilian of ?
OR((Q675940,P27,c(Q15617994)), (Q7067486,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q675940
relation P27
action find
entity Q7067486
relation P27
type Q15617994
{'OR': [['Q675940', 'P27', {'concept': 'Q15617994'}], ['Q7067486', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { ?c property:P27 ?h . VALUES ( ?c ) { ( resource:Q675940 ) ( resource:Q7067486 ) } } . ?h rdf:type ontology:Q15617994 }
Noël Emmanuel Limage Rafi Eitan
action filter_type
action union
action find
entity Rafi Eitan
relation country of citizenship
action find
entity Noël Emmanuel Limage
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Rafi Eitan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Noël Emmanuel Limage', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { ?c property:country_of_citizenship ?h . VALUES ( ?c ) { ( resource:Rafi_Eitan ) ( resource:Noël_Emmanuel_Limage ) } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q790 Q801
SYSTEM
Haiti, Israel
Q790 Q801
OR((Q675940,P27,c(Q15617994)), (Q7067486,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q675940
relation P27
action find
entity Q7067486
relation P27
type Q15617994
[ANSWERS] are Rafi Eitan or Noël Emmanuel Limage a civilian of
{'OR': [['Q675940', 'P27', {'concept': 'Q15617994'}], ['Q7067486', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { ?c property:P27 ?h . VALUES ( ?c ) { ( resource:Q675940 ) ( resource:Q7067486 ) } } . ?h rdf:type ontology:Q15617994 }
Haiti Israel
Haiti and Israel are Rafi Eitan or Noël Emmanuel Limage a civilian of
Haiti Israel
action filter_type
action union
action find
entity Rafi Eitan
relation country of citizenship
action find
entity Noël Emmanuel Limage
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Rafi Eitan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Noël Emmanuel Limage', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { ?c property:country_of_citizenship ?h . VALUES ( ?c ) { ( resource:Rafi_Eitan ) ( resource:Noël_Emmanuel_Limage ) } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1037443 Q675940
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Rafi Eitan or Sándor Holczreiter ?
OR((Q675940,P27,c(Q15617994)), (Q1037443,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q675940
relation P27
action find
entity Q1037443
relation P27
type Q15617994
{'OR': [['Q675940', 'P27', {'concept': 'Q15617994'}], ['Q1037443', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q675940 property:P27 ?p } UNION { resource:Q1037443 property:P27 ?p } } . ?p rdf:type ontology:Q15617994 }
Sándor Holczreiter Rafi Eitan
action filter_type
action union
action find
entity Rafi Eitan
relation country of citizenship
action find
entity Sándor Holczreiter
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Rafi Eitan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sándor Holczreiter', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Rafi_Eitan property:country_of_citizenship ?p } UNION { resource:Sándor_Holczreiter property:country_of_citizenship ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28 Q801
SYSTEM
Hungary, Israel
Q28 Q801
OR((Q675940,P27,c(Q15617994)), (Q1037443,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q675940
relation P27
action find
entity Q1037443
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Rafi Eitan or Sándor Holczreiter
{'OR': [['Q675940', 'P27', {'concept': 'Q15617994'}], ['Q1037443', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q675940 property:P27 ?p } UNION { resource:Q1037443 property:P27 ?p } } . ?p rdf:type ontology:Q15617994 }
Hungary Israel
Hungary and Israel are the countries of citizenship of Rafi Eitan or Sándor Holczreiter
Hungary Israel
action filter_type
action union
action find
entity Rafi Eitan
relation country of citizenship
action find
entity Sándor Holczreiter
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Rafi Eitan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sándor Holczreiter', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Rafi_Eitan property:country_of_citizenship ?p } UNION { resource:Sándor_Holczreiter property:country_of_citizenship ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q28
P276
Q1190554
USER
Which event is located at that administrative territory ?
(c(Q1190554),P276,Q28)
action filter_type
action find_reverse
entity Q28
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q28']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1190554 . ?d property:P276 resource:Q28 }
Hungary
action filter_type
action find_reverse
entity Hungary
relation location
type event
[{'concept': 'event'}, 'location', 'Hungary']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:event . ?d property:location resource:Hungary }
[]
event
Clarification for simple ques.
Q801
SYSTEM
Did you mean Israel ?
Q28 Q801
(c(Q1190554),P276,Q28) (c(Q1190554),P276,Q801)
[ANSWER]
[{'concept': 'Q1190554'}, 'P276', 'Q28'] [{'concept': 'Q1190554'}, 'P276', 'Q801']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1190554 . ?d property:P276 resource:Q28 }
Hungary Israel
Did you mean Israel ?
Israel
[{'concept': 'event'}, 'location', 'Hungary'] [{'concept': 'event'}, 'location', 'Israel']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:event . ?d property:location resource:Hungary }
[]
Simple Question (Coreferenced)
USER
No, I meant Hungary. Could you tell me the answer for that?
(c(Q1190554),P276,Q28)
Q28
[{'concept': 'Q1190554'}, 'P276', 'Q28']
[{'concept': 'event'}, 'location', 'Hungary']
[]
Q164348
SYSTEM
Hungarian Revolution of 1956
Q164348
(c(Q1190554),P276,Q28)
action filter_type
action find_reverse
entity Q28
relation P276
type Q1190554
[ANSWER] is located at that administrative territory
[{'concept': 'Q1190554'}, 'P276', 'Q28']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1190554 . ?d property:P276 resource:Q28 }
Hungarian Revolution of 1956
Hungarian Revolution of 1956 is located at that administrative territory
Hungarian Revolution of 1956
action filter_type
action find_reverse
entity Hungary
relation location
type event
[{'concept': 'event'}, 'location', 'Hungary']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:event . ?d property:location resource:Hungary }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q164348
P710
Q895526
USER
Who was the artist who participated in that event ?
(Q164348,P710,c(Q895526))
action filter_type
action find
entity Q164348
relation P710
type Q895526
['Q164348', 'P710', {'concept': 'Q895526'}]
SELECT DISTINCT ?o WHERE { resource:Q164348 property:P710 ?o . ?o rdf:type ontology:Q895526 }
Hungarian Revolution of 1956
action filter_type
action find
entity Hungarian Revolution of 1956
relation participant
type authority organ
['Hungarian Revolution of 1956', 'participant', {'concept': 'authority organ'}]
SELECT DISTINCT ?o WHERE { resource:Hungarian_Revolution_of_1956 property:participant ?o . ?o rdf:type ontology:authority_organ }
[]
authority organ
Q250687
SYSTEM
State Protection Authority
Q250687
(Q164348,P710,c(Q895526))
action filter_type
action find
entity Q164348
relation P710
type Q895526
The artist participated in that event was the [ANSWER]
['Q164348', 'P710', {'concept': 'Q895526'}]
SELECT DISTINCT ?o WHERE { resource:Q164348 property:P710 ?o . ?o rdf:type ontology:Q895526 }
State Protection Authority
The artist participated in that event was the State Protection Authority
State Protection Authority
action filter_type
action find
entity Hungarian Revolution of 1956
relation participant
type authority organ
['Hungarian Revolution of 1956', 'participant', {'concept': 'authority organ'}]
SELECT DISTINCT ?o WHERE { resource:Hungarian_Revolution_of_1956 property:participant ?o . ?o rdf:type ontology:authority_organ }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q250687
P159
Q34442
USER
Where is the headquarter of that authority organ located ?
(Q250687,P159,c(Q34442))
action filter_type
action find
entity Q250687
relation P159
type Q34442
['Q250687', 'P159', {'concept': 'Q34442'}]
SELECT DISTINCT ?m WHERE { resource:Q250687 property:P159 ?m . ?m rdf:type ontology:Q34442 }
State Protection Authority
action filter_type
action find
entity State Protection Authority
relation headquarters location
type road
['State Protection Authority', 'headquarters location', {'concept': 'road'}]
SELECT DISTINCT ?m WHERE { resource:State_Protection_Authority property:headquarters_location ?m . ?m rdf:type ontology:road }
[]
road
Q367395
SYSTEM
Andrássy út
Q367395
(Q250687,P159,c(Q34442))
action filter_type
action find
entity Q250687
relation P159
type Q34442
The headquarter of that authority organ is located in [ANSWER]
['Q250687', 'P159', {'concept': 'Q34442'}]
SELECT DISTINCT ?m WHERE { resource:Q250687 property:P159 ?m . ?m rdf:type ontology:Q34442 }
Andrássy út
The headquarter of that authority organ is located in Andrássy út
Andrássy út
action filter_type
action find
entity State Protection Authority
relation headquarters location
type road
['State Protection Authority', 'headquarters location', {'concept': 'road'}]
SELECT DISTINCT ?m WHERE { resource:State_Protection_Authority property:headquarters_location ?m . ?m rdf:type ontology:road }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q2800737
P669
Q34442 Q7743
USER
How many homes have their location as less number of roads than Castle Egmond ?
(c(Q7743),P669,c(Q34442))
action count
action less
action find_tuple_counts
relation P669
type Q7743
type Q34442
action count
action filter_type
action find
entity Q2800737
relation P669
type Q34442
[{'concept': 'Q7743'}, 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?x ) WHERE { ?u property:P669 ?m . ?u rdf:type ontology:Q7743 . ?m rdf:type ontology:Q34442 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { resource:Q2800737 property:P669 ?j . ?j rdf:type ontology:Q34442 } } . FILTER ( ?x < ?v ) }
Castle Egmond
action count
action less
action find_tuple_counts
relation located on street
type home
type road
action count
action filter_type
action find
entity Castle Egmond
relation located on street
type road
[{'concept': 'home'}, 'located on street', {'concept': 'road'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?x ) WHERE { ?u property:located_on_street ?m . ?u rdf:type ontology:home . ?m rdf:type ontology:road } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { resource:Castle_Egmond property:located_on_street ?j . ?j rdf:type ontology:road } } . FILTER ( ?x < ?v ) }
[]
road home
SYSTEM
4
Q2971693 Q2968405 Q7568553 Q15940137
(c(Q7743),P669,c(Q34442))
action count
action less
action find_tuple_counts
relation P669
type Q7743
type Q34442
action count
action filter_type
action find
entity Q2800737
relation P669
type Q34442
[ANSWER]
[{'concept': 'Q7743'}, 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?x ) WHERE { ?u property:P669 ?m . ?u rdf:type ontology:Q7743 . ?m rdf:type ontology:Q34442 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { resource:Q2800737 property:P669 ?j . ?j rdf:type ontology:Q34442 } } . FILTER ( ?x < ?v ) }
Château du Grand-Saint-Jean Château de Bagatelle South Stoneham House Château de Butenheim
4
action count
action less
action find_tuple_counts
relation located on street
type home
type road
action count
action filter_type
action find
entity Castle Egmond
relation located on street
type road
[{'concept': 'home'}, 'located on street', {'concept': 'road'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?x ) WHERE { ?u property:located_on_street ?m . ?u rdf:type ontology:home . ?m rdf:type ontology:road } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { resource:Castle_Egmond property:located_on_street ?j . ?j rdf:type ontology:road } } . FILTER ( ?x < ?v ) }
[]