Simple Question (Direct)
Simple Question
Q2404523
P102
Q7210356
USER
Which political organization is Terence O'Connor a member of ?
(Q2404523,P102,c(Q7210356))
action filter_type
action find
entity Q2404523
relation P102
type Q7210356
['Q2404523', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q2404523 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Terence O'Connor
action filter_type
action find
entity Terence O'Connor
relation member of political party
type political organization
["Terence O'Connor", 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Terence_O'Connor property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
political organization
Q9626
SYSTEM
Conservative Party
Q9626
(Q2404523,P102,c(Q7210356))
action filter_type
action find
entity Q2404523
relation P102
type Q7210356
The [ANSWER] is Terence O'Connor a member of
['Q2404523', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q2404523 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Conservative Party
The Conservative Party is Terence O'Connor a member of
Conservative Party
action filter_type
action find
entity Terence O'Connor
relation member of political party
type political organization
["Terence O'Connor", 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Terence_O'Connor property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2404523
P39
Q12737077
USER
Which occupation was a position for which Terence O'Connor was appointed ?
(Q2404523,P39,c(Q12737077))
action filter_type
action find
entity Q2404523
relation P39
type Q12737077
['Q2404523', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q2404523 property:P39 ?y }
Terence O'Connor
action filter_type
action find
entity Terence O'Connor
relation position held
type occupation
["Terence O'Connor", 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Terence_O'Connor property:position_held ?y }
[]
occupation
Q16707842
SYSTEM
Member of Parliament in the United Kingdom
Q16707842
(Q2404523,P39,c(Q12737077))
action filter_type
action find
entity Q2404523
relation P39
type Q12737077
The [ANSWER] was a position for which Terence O'Connor was appointed
['Q2404523', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q2404523 property:P39 ?y }
Member of Parliament in the United Kingdom
The Member of Parliament in the United Kingdom was a position for which Terence O'Connor was appointed
Member of Parliament in the United Kingdom
action filter_type
action find
entity Terence O'Connor
relation position held
type occupation
["Terence O'Connor", 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Terence_O'Connor property:position_held ?y }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q2404523
P937
Q56061
USER
How many administrative territories are the work locations of Terence O'Connor ?
(Q2404523,P937,c(Q56061))
action count
action filter_type
action find
entity Q2404523
relation P937
type Q56061
['Q2404523', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { resource:Q2404523 property:P937 ?u . ?u rdf:type ontology:Q56061 }
Terence O'Connor
action count
action filter_type
action find
entity Terence O'Connor
relation work location
type administrative territorial entity
["Terence O'Connor", 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { resource:Terence_O'Connor property:work_location ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q84
(Q2404523,P937,c(Q56061))
action count
action filter_type
action find
entity Q2404523
relation P937
type Q56061
[ANSWER]
['Q2404523', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { resource:Q2404523 property:P937 ?u . ?u rdf:type ontology:Q56061 }
London
1
action count
action filter_type
action find
entity Terence O'Connor
relation work location
type administrative territorial entity
["Terence O'Connor", 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { resource:Terence_O'Connor property:work_location ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1731457
P937
Q56061
USER
Which administrative territory is the work location of Karl Heidenblut ?
(Q1731457,P937,c(Q56061))
action filter_type
action find
entity Q1731457
relation P937
type Q56061
['Q1731457', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q1731457 property:P937 ?i . ?i rdf:type ontology:Q56061 }
Karl Heidenblut
action filter_type
action find
entity Karl Heidenblut
relation work location
type administrative territorial entity
['Karl Heidenblut', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Karl_Heidenblut property:work_location ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1715
SYSTEM
Hanover
Q1715
(Q1731457,P937,c(Q56061))
action filter_type
action find
entity Q1731457
relation P937
type Q56061
[ANSWER] is the work location of Karl Heidenblut
['Q1731457', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q1731457 property:P937 ?i . ?i rdf:type ontology:Q56061 }
Hanover
Hanover is the work location of Karl Heidenblut
Hanover
action filter_type
action find
entity Karl Heidenblut
relation work location
type administrative territorial entity
['Karl Heidenblut', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Karl_Heidenblut property:work_location ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1715
P190
Q56061
USER
Which administrative territories are the sister cities of that one ?
(Q1715,P190,c(Q56061))
action filter_type
action find
entity Q1715
relation P190
type Q56061
['Q1715', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . resource:Q1715 property:P190 ?l }
Hanover
action filter_type
action find
entity Hanover
relation sister city
type administrative territorial entity
['Hanover', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . resource:Hanover property:sister_city ?l }
[]
administrative territorial entity
Q340 Q1491 Q41819
SYSTEM
Montreal, La Paz, Kansas City
Q340 Q23154 Q1491 Q41819 Q188693
(Q1715,P190,c(Q56061))
action filter_type
action find
entity Q1715
relation P190
type Q56061
[ANSWERS] are the sister cities of that one
['Q1715', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . resource:Q1715 property:P190 ?l }
Montreal Bristol La Paz Kansas City Blantyre
Montreal, La Paz and Kansas City are the sister cities of that one
Montreal La Paz Kansas City
action filter_type
action find
entity Hanover
relation sister city
type administrative territorial entity
['Hanover', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . resource:Hanover property:sister_city ?l }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q340 Q1491 Q41819
P190
Q515
USER
Which cities are sister towns of those administrative territories ?
(Q340,P190,c(Q515)) (Q1491,P190,c(Q515)) (Q41819,P190,c(Q515))
action filter_type
action find
entity prev_answer
relation P190
type Q515
['Q340', 'P190', {'concept': 'Q515'}] ['Q1491', 'P190', {'concept': 'Q515'}] ['Q41819', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?q WHERE { VALUES ( ?m ) { ( resource:Q340 ) ( resource:Q23154 ) ( resource:Q1491 ) } . ?m property:P190 ?q . ?q rdf:type ontology:Q515 }
Montreal La Paz Kansas City
action filter_type
action find
entity prev_answer
relation sister city
type city
['Montreal', 'sister city', {'concept': 'city'}] ['La Paz', 'sister city', {'concept': 'city'}] ['Kansas City', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?q WHERE { VALUES ( ?m ) { ( resource:Montreal ) ( resource:Bristol ) ( resource:La_Paz ) } . ?m property:sister_city ?q . ?q rdf:type ontology:city }
[]
city
Q1461 Q19660 Q1953
SYSTEM
Manila, Bucharest, Yerevan
Q34261 Q3572 Q16520 Q19660 Q47916 Q1858 Q1461 Q1953 Q1533 Q1844 Q2203 Q2887 Q217432
(Q340,P190,c(Q515)) (Q1491,P190,c(Q515)) (Q41819,P190,c(Q515))
action filter_type
action find
entity prev_answer
relation P190
type Q515
[ANSWERS] are sister towns of those administrative territories
['Q340', 'P190', {'concept': 'Q515'}] ['Q1491', 'P190', {'concept': 'Q515'}] ['Q41819', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?q WHERE { VALUES ( ?m ) { ( resource:Q340 ) ( resource:Q23154 ) ( resource:Q1491 ) } . ?m property:P190 ?q . ?q rdf:type ontology:Q515 }
Port-au-Prince Tunis Busan Bucharest Lucknow Hanoi Manila Yerevan Caracas Vaduz Arica Santiago Port Harcourt
Manila, Bucharest and Yerevan are sister towns of those administrative territories
Manila Bucharest Yerevan
action filter_type
action find
entity prev_answer
relation sister city
type city
['Montreal', 'sister city', {'concept': 'city'}] ['La Paz', 'sister city', {'concept': 'city'}] ['Kansas City', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?q WHERE { VALUES ( ?m ) { ( resource:Montreal ) ( resource:Bristol ) ( resource:La_Paz ) } . ?m property:sister_city ?q . ?q rdf:type ontology:city }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1461
P36
Q7275
USER
Which state consists of that city as its capital ?
(c(Q7275),P36,Q1461)
action filter_type
action find_reverse
entity Q1461
relation P36
type Q7275
[{'concept': 'Q7275'}, 'P36', 'Q1461']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q7275 . ?u property:P36 resource:Q1461 }
Manila
action filter_type
action find_reverse
entity Manila
relation capital
type state
[{'concept': 'state'}, 'capital', 'Manila']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:state . ?u property:capital resource:Manila }
[]
state
Clarification for simple ques.
Q19660
SYSTEM
Did you mean Bucharest ?
Q1461 Q19660 Q1953
(c(Q7275),P36,Q1461) (c(Q7275),P36,Q19660) (c(Q7275),P36,Q1953)
[ANSWER]
[{'concept': 'Q7275'}, 'P36', 'Q1461'] [{'concept': 'Q7275'}, 'P36', 'Q19660'] [{'concept': 'Q7275'}, 'P36', 'Q1953']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q7275 . ?u property:P36 resource:Q1461 }
Manila Bucharest Yerevan
Did you mean Bucharest ?
Bucharest
[{'concept': 'state'}, 'capital', 'Manila'] [{'concept': 'state'}, 'capital', 'Bucharest'] [{'concept': 'state'}, 'capital', 'Yerevan']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:state . ?u property:capital resource:Manila }
[]
Simple Question (Coreferenced)
USER
No, I meant Manila. Could you tell me the answer for that?
(c(Q7275),P36,Q1461)
Q1461
[{'concept': 'Q7275'}, 'P36', 'Q1461']
[{'concept': 'state'}, 'capital', 'Manila']
[]
Q146328
SYSTEM
Commonwealth of the Philippines
Q146328
(c(Q7275),P36,Q1461)
action filter_type
action find_reverse
entity Q1461
relation P36
type Q7275
[ANSWER] consists of that city as its capital
[{'concept': 'Q7275'}, 'P36', 'Q1461']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q7275 . ?u property:P36 resource:Q1461 }
Commonwealth of the Philippines
Commonwealth of the Philippines consists of that city as its capital
Commonwealth of the Philippines
action filter_type
action find_reverse
entity Manila
relation capital
type state
[{'concept': 'state'}, 'capital', 'Manila']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:state . ?u property:capital resource:Manila }
[]