Simple Question (Direct)
Simple Question
Q7349981
P106
Q12737077
USER
Which occupations are the professions of Robert Stacy-Judd ?
(Q7349981,P106,c(Q12737077))
action filter_type
action find
entity Q7349981
relation P106
type Q12737077
['Q7349981', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q7349981 property:P106 ?z }
Robert Stacy-Judd
action filter_type
action find
entity Robert Stacy-Judd
relation occupation
type occupation
['Robert Stacy-Judd', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:Robert_Stacy-Judd property:occupation ?z }
[]
occupation
Q42973 Q36180
SYSTEM
architect, writer
Q42973 Q36180
(Q7349981,P106,c(Q12737077))
action filter_type
action find
entity Q7349981
relation P106
type Q12737077
The professions of Robert Stacy-Judd are an [ANSWERS]
['Q7349981', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q7349981 property:P106 ?z }
architect writer
The professions of Robert Stacy-Judd are an architect and writer
architect writer
action filter_type
action find
entity Robert Stacy-Judd
relation occupation
type occupation
['Robert Stacy-Judd', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:Robert_Stacy-Judd property:occupation ?z }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q42973 Q36180
P39
Q502895
USER
Who held the position of architect and writer ?
(c(Q502895),P39,Q42973) (c(Q502895),P39,Q36180)
action union
action filter_type
action find_reverse
entity Q42973
relation P39
type Q502895
action filter_type
action find_reverse
entity Q36180
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q42973'] [{'concept': 'Q502895'}, 'P39', 'Q36180']
SELECT DISTINCT ?q WHERE { { ?q rdf:type ontology:Q502895 . ?q property:P39 resource:Q42973 } UNION { ?q property:P39 resource:Q36180 . ?q rdf:type ontology:Q502895 } }
architect writer
action union
action filter_type
action find_reverse
entity architect
relation position held
type common name
action filter_type
action find_reverse
entity writer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'architect'] [{'concept': 'common name'}, 'position held', 'writer']
SELECT DISTINCT ?q WHERE { { ?q rdf:type ontology:common_name . ?q property:position_held resource:architect } UNION { ?q property:position_held resource:writer . ?q rdf:type ontology:common_name } }
[]
common name
Q4255270 Q723621 Q5945149
SYSTEM
Mariano Roca de Togores, 1st Marquis of Molins, Paul Nizan, José Rocamora
Q21600904 Q11294693 Q723621 Q20666477 Q163042 Q5945149 Q4255270
(c(Q502895),P39,Q42973) (c(Q502895),P39,Q36180)
action union
action filter_type
action find_reverse
entity Q42973
relation P39
type Q502895
action filter_type
action find_reverse
entity Q36180
relation P39
type Q502895
[ANSWERS] held the position of architect and writer
[{'concept': 'Q502895'}, 'P39', 'Q42973'] [{'concept': 'Q502895'}, 'P39', 'Q36180']
SELECT DISTINCT ?q WHERE { { ?q rdf:type ontology:Q502895 . ?q property:P39 resource:Q42973 } UNION { ?q property:P39 resource:Q36180 . ?q rdf:type ontology:Q502895 } }
Édouard Danjoy Henri de Saint-Ignace Paul Nizan Marina Damestoy David Duke José Rocamora Mariano Roca de Togores, 1st Marquis of Molins
Mariano Roca de Togores, 1st Marquis of Molins, Paul Nizan and José Rocamora held the position of architect and writer
Mariano Roca de Togores, 1st Marquis of Molins Paul Nizan José Rocamora
action union
action filter_type
action find_reverse
entity architect
relation position held
type common name
action filter_type
action find_reverse
entity writer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'architect'] [{'concept': 'common name'}, 'position held', 'writer']
SELECT DISTINCT ?q WHERE { { ?q rdf:type ontology:common_name . ?q property:position_held resource:architect } UNION { ?q property:position_held resource:writer . ?q rdf:type ontology:common_name } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q4255270 Q723621 Q5945149
P102
Q7278
USER
Which parties are those people affiliated with ?
(Q4255270,P102,c(Q7278)) (Q723621,P102,c(Q7278)) (Q5945149,P102,c(Q7278))
action filter_type
action find
entity prev_answer
relation P102
type Q7278
['Q4255270', 'P102', {'concept': 'Q7278'}] ['Q723621', 'P102', {'concept': 'Q7278'}] ['Q5945149', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q7278 . VALUES ( ?u ) { ( resource:Q21600904 ) ( resource:Q11294693 ) ( resource:Q723621 ) } . ?u property:P102 ?t }
Mariano Roca de Togores, 1st Marquis of Molins Paul Nizan José Rocamora
action filter_type
action find
entity prev_answer
relation member of political party
type political party
['Mariano Roca de Togores, 1st Marquis of Molins', 'member of political party', {'concept': 'political party'}] ['Paul Nizan', 'member of political party', {'concept': 'political party'}] ['José Rocamora', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:political_party . VALUES ( ?u ) { ( resource:Édouard_Danjoy ) ( resource:Henri_de_Saint-Ignace ) ( resource:Paul_Nizan ) } . ?u property:member_of_political_party ?t }
[]
political party
Q3047700 Q192821 Q3322686
SYSTEM
Liberal-Conservative Party, French Communist Party, Liberal Party
Q3047700 Q192821 Q3322686
(Q4255270,P102,c(Q7278)) (Q723621,P102,c(Q7278)) (Q5945149,P102,c(Q7278))
action filter_type
action find
entity prev_answer
relation P102
type Q7278
Those people are affiliated with [ANSWERS]
['Q4255270', 'P102', {'concept': 'Q7278'}] ['Q723621', 'P102', {'concept': 'Q7278'}] ['Q5945149', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q7278 . VALUES ( ?u ) { ( resource:Q21600904 ) ( resource:Q11294693 ) ( resource:Q723621 ) } . ?u property:P102 ?t }
Liberal-Conservative Party French Communist Party Liberal Party
Those people are affiliated with Liberal-Conservative Party, French Communist Party and Liberal Party
Liberal-Conservative Party French Communist Party Liberal Party
action filter_type
action find
entity prev_answer
relation member of political party
type political party
['Mariano Roca de Togores, 1st Marquis of Molins', 'member of political party', {'concept': 'political party'}] ['Paul Nizan', 'member of political party', {'concept': 'political party'}] ['José Rocamora', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:political_party . VALUES ( ?u ) { ( resource:Édouard_Danjoy ) ( resource:Henri_de_Saint-Ignace ) ( resource:Paul_Nizan ) } . ?u property:member_of_political_party ?t }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q3047700 Q192821 Q3322686
P17
Q15617994
USER
Which administrative territories do Liberal-Conservative Party, French Communist Party and Liberal Party belong to ?
(Q3047700,P17,c(Q15617994)) (Q192821,P17,c(Q15617994)) (Q3322686,P17,c(Q15617994))
action union
action filter_type
action find
entity Q3047700
relation P17
type Q15617994
action filter_type
action find
entity Q192821
relation P17
type Q15617994
action filter_type
action find
entity Q3322686
relation P17
type Q15617994
['Q3047700', 'P17', {'concept': 'Q15617994'}] ['Q192821', 'P17', {'concept': 'Q15617994'}] ['Q3322686', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { resource:Q192821 property:P17 ?x . ?x rdf:type ontology:Q15617994 } UNION { resource:Q3047700 property:P17 ?x . ?x rdf:type ontology:Q15617994 } }
Liberal-Conservative Party French Communist Party Liberal Party
action union
action filter_type
action find
entity Liberal-Conservative Party
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity French Communist Party
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Liberal Party
relation country
type designation for an administrative territorial entity
['Liberal-Conservative Party', 'country', {'concept': 'designation for an administrative territorial entity'}] ['French Communist Party', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Liberal Party', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { resource:French_Communist_Party property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Liberal-Conservative_Party property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q29 Q142 Q29
SYSTEM
France for 2nd, Spain for 1st, 3rd
Q29 Q142 Q29
(Q3047700,P17,c(Q15617994)) (Q192821,P17,c(Q15617994)) (Q3322686,P17,c(Q15617994))
action union
action filter_type
action find
entity Q3047700
relation P17
type Q15617994
action filter_type
action find
entity Q192821
relation P17
type Q15617994
action filter_type
action find
entity Q3322686
relation P17
type Q15617994
[ANSWERS]
['Q3047700', 'P17', {'concept': 'Q15617994'}] ['Q192821', 'P17', {'concept': 'Q15617994'}] ['Q3322686', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { resource:Q192821 property:P17 ?x . ?x rdf:type ontology:Q15617994 } UNION { resource:Q3047700 property:P17 ?x . ?x rdf:type ontology:Q15617994 } }
Spain France Spain
Spain, France and Spain Liberal-Conservative Party, French Communist Party and Liberal Party belong to
Spain France Spain
action union
action filter_type
action find
entity Liberal-Conservative Party
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity French Communist Party
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Liberal Party
relation country
type designation for an administrative territorial entity
['Liberal-Conservative Party', 'country', {'concept': 'designation for an administrative territorial entity'}] ['French Communist Party', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Liberal Party', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { resource:French_Communist_Party property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Liberal-Conservative_Party property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3047700
P463
Q502895
USER
Which person is a part of that political party ?
(c(Q502895),P463,Q3047700)
action filter_type
action find_reverse
entity Q3047700
relation P463
type Q502895
[{'concept': 'Q502895'}, 'P463', 'Q3047700']
SELECT DISTINCT ?v WHERE { ?v property:P463 resource:Q3047700 . ?v rdf:type ontology:Q502895 }
Liberal-Conservative Party
action filter_type
action find_reverse
entity Liberal-Conservative Party
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'Liberal-Conservative Party']
SELECT DISTINCT ?v WHERE { ?v property:member_of resource:Liberal-Conservative_Party . ?v rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q3047700
SYSTEM
Did you mean Liberal-Conservative Party ?
Q29 Q142 Q29
(c(Q502895),P463,Q29) (c(Q502895),P463,Q142) (c(Q502895),P463,Q29)
[ANSWER]
[{'concept': 'Q502895'}, 'P463', 'Q29'] [{'concept': 'Q502895'}, 'P463', 'Q142'] [{'concept': 'Q502895'}, 'P463', 'Q29']
SELECT DISTINCT ?v WHERE { ?v property:P463 resource:Q3047700 . ?v rdf:type ontology:Q502895 }
Spain France Spain
Did you mean Liberal-Conservative Party ?
Liberal-Conservative Party
[{'concept': 'common name'}, 'member of', 'Spain'] [{'concept': 'common name'}, 'member of', 'France'] [{'concept': 'common name'}, 'member of', 'Spain']
SELECT DISTINCT ?v WHERE { ?v property:member_of resource:Liberal-Conservative_Party . ?v rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P463,Q3047700)
[{'concept': 'Q502895'}, 'P463', 'Q3047700']
[{'concept': 'common name'}, 'member of', 'Liberal-Conservative Party']
[]
Q11933683
SYSTEM
Lluís Tur i Palau
Q11933683
(c(Q502895),P463,Q3047700)
action filter_type
action find_reverse
entity Q3047700
relation P463
type Q502895
[ANSWER] is a part of that political party
[{'concept': 'Q502895'}, 'P463', 'Q3047700']
SELECT DISTINCT ?v WHERE { ?v property:P463 resource:Q3047700 . ?v rdf:type ontology:Q502895 }
Lluís Tur i Palau
Lluís Tur i Palau is a part of that political party
Lluís Tur i Palau
action filter_type
action find_reverse
entity Liberal-Conservative Party
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'Liberal-Conservative Party']
SELECT DISTINCT ?v WHERE { ?v property:member_of resource:Liberal-Conservative_Party . ?v rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q142 Q35
P530
Q1048835
USER
How many political territories holds diplomatic relationship with France and Denmark ?
(Q142,P530,c(Q1048835)) (Q35,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q142
relation P530
type Q1048835
action filter_type
action find
entity Q35
relation P530
type Q1048835
['Q142', 'P530', {'concept': 'Q1048835'}] ['Q35', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { ?i rdf:type ontology:Q1048835 . resource:Q142 property:P530 ?i . resource:Q35 property:P530 ?i . ?i rdf:type ontology:Q1048835 }
France Denmark
action count
action intersection
action filter_type
action find
entity France
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
['France', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Denmark', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { ?i rdf:type ontology:political_territorial_entity . resource:France property:diplomatic_relation ?i . resource:Denmark property:diplomatic_relation ?i . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(Q142,P530,c(Q1048835)) (Q35,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q142
relation P530
type Q1048835
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWER]
['Q142', 'P530', {'concept': 'Q1048835'}] ['Q35', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { ?i rdf:type ontology:Q1048835 . resource:Q142 property:P530 ?i . resource:Q35 property:P530 ?i . ?i rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find
entity France
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
['France', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Denmark', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { ?i rdf:type ontology:political_territorial_entity . resource:France property:diplomatic_relation ?i . resource:Denmark property:diplomatic_relation ?i . ?i rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11933683
P463
Q7278
USER
Which political party was Lluís Tur i Palau a member of ?
(Q11933683,P463,c(Q7278))
action filter_type
action find
entity Q11933683
relation P463
type Q7278
['Q11933683', 'P463', {'concept': 'Q7278'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q7278 . resource:Q11933683 property:P463 ?q }
Lluís Tur i Palau
action filter_type
action find
entity Lluís Tur i Palau
relation member of
type political party
['Lluís Tur i Palau', 'member of', {'concept': 'political party'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:political_party . resource:Lluís_Tur_i_Palau property:member_of ?q }
[]
political party
Q3047700
SYSTEM
Liberal-Conservative Party
Q3047700
(Q11933683,P463,c(Q7278))
action filter_type
action find
entity Q11933683
relation P463
type Q7278
Party [ANSWER] was Lluís Tur i Palau a member of
['Q11933683', 'P463', {'concept': 'Q7278'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q7278 . resource:Q11933683 property:P463 ?q }
Liberal-Conservative Party
Party Liberal-Conservative Party was Lluís Tur i Palau a member of
Liberal-Conservative Party
action filter_type
action find
entity Lluís Tur i Palau
relation member of
type political party
['Lluís Tur i Palau', 'member of', {'concept': 'political party'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:political_party . resource:Lluís_Tur_i_Palau property:member_of ?q }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q150398
Q7278
USER
And how about Convergence and Union?
(Q150398,P463,c(Q7278))
action filter_type
action find
entity Q150398
relation P463
type Q7278
['Q150398', 'P463', {'concept': 'Q7278'}]
SELECT DISTINCT ?f WHERE { resource:Q150398 property:P463 ?f . ?f rdf:type ontology:Q7278 }
Convergence and Union
action filter_type
action find
entity Convergence and Union
relation member of
type political party
['Convergence and Union', 'member of', {'concept': 'political party'}]
SELECT DISTINCT ?f WHERE { resource:Convergence_and_Union property:member_of ?f . ?f rdf:type ontology:political_party }
[]
political party
Q25079
SYSTEM
Alliance of Liberals and Democrats for Europe Party
Q25079
(Q150398,P463,c(Q7278))
action filter_type
action find
entity Q150398
relation P463
type Q7278
[ANSWER]
['Q150398', 'P463', {'concept': 'Q7278'}]
SELECT DISTINCT ?f WHERE { resource:Q150398 property:P463 ?f . ?f rdf:type ontology:Q7278 }
Alliance of Liberals and Democrats for Europe Party
Alliance of Liberals and Democrats for Europe Party
action filter_type
action find
entity Convergence and Union
relation member of
type political party
['Convergence and Union', 'member of', {'concept': 'political party'}]
SELECT DISTINCT ?f WHERE { resource:Convergence_and_Union property:member_of ?f . ?f rdf:type ontology:political_party }
[]