Simple Question (Direct)
Simple Question
Q6234730
P102
Q7210356
USER
Which parties are John Gallacher affiliated with ?
(Q6234730,P102,c(Q7210356))
action filter_type
action find
entity Q6234730
relation P102
type Q7210356
['Q6234730', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?a WHERE { resource:Q6234730 property:P102 ?a . ?a rdf:type ontology:Q7210356 }
John Gallacher
action filter_type
action find
entity John Gallacher
relation member of political party
type political organization
['John Gallacher', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?a WHERE { resource:John_Gallacher property:member_of_political_party ?a . ?a rdf:type ontology:political_organization }
[]
political organization
Q6467393 Q9630
SYSTEM
Labour Co-operative, Labour Party
Q6467393 Q9630
(Q6234730,P102,c(Q7210356))
action filter_type
action find
entity Q6234730
relation P102
type Q7210356
John Gallacher are affiliated with [ANSWERS]
['Q6234730', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?a WHERE { resource:Q6234730 property:P102 ?a . ?a rdf:type ontology:Q7210356 }
Labour Co-operative Labour Party
John Gallacher are affiliated with Labour Co-operative and Labour Party
Labour Co-operative Labour Party
action filter_type
action find
entity John Gallacher
relation member of political party
type political organization
['John Gallacher', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?a WHERE { resource:John_Gallacher property:member_of_political_party ?a . ?a rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9630
P17
Q15617994
USER
Which administrative territory is Labour Party present in ?
(Q9630,P17,c(Q15617994))
action filter_type
action find
entity Q9630
relation P17
type Q15617994
['Q9630', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q9630 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Labour Party
action filter_type
action find
entity Labour Party
relation country
type designation for an administrative territorial entity
['Labour Party', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Labour_Party property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q9630,P17,c(Q15617994))
action filter_type
action find
entity Q9630
relation P17
type Q15617994
Which administrative territory is Labour Party present in
['Q9630', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q9630 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
United Kingdom
Which administrative territory is Labour Party present in
United Kingdom
action filter_type
action find
entity Labour Party
relation country
type designation for an administrative territorial entity
['Labour Party', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Labour_Party property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9630
P1142
Q7257
USER
What ideologies do Labour Party believe in ?
(Q9630,P1142,c(Q7257))
action filter_type
action find
entity Q9630
relation P1142
type Q7257
['Q9630', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q7257 . resource:Q9630 property:P1142 ?f }
Labour Party
action filter_type
action find
entity Labour Party
relation political ideology
type ideology
['Labour Party', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:ideology . resource:Labour_Party property:political_ideology ?f }
[]
ideology
Q189280 Q121254
SYSTEM
democratic socialism, social democracy
Q189280 Q121254
(Q9630,P1142,c(Q7257))
action filter_type
action find
entity Q9630
relation P1142
type Q7257
Labour Party believe in [ANSWERS]
['Q9630', 'P1142', {'concept': 'Q7257'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q7257 . resource:Q9630 property:P1142 ?f }
democratic socialism social democracy
Labour Party believe in democratic socialism and social democracy
democratic socialism social democracy
action filter_type
action find
entity Labour Party
relation political ideology
type ideology
['Labour Party', 'political ideology', {'concept': 'ideology'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:ideology . resource:Labour_Party property:political_ideology ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P291
Q1002697
USER
Which periodical literatures were published in United Kingdom ?
(c(Q1002697),P291,Q145)
action filter_type
action find_reverse
entity Q145
relation P291
type Q1002697
[{'concept': 'Q1002697'}, 'P291', 'Q145']
SELECT DISTINCT ?z WHERE { ?z property:P291 resource:Q145 . ?z rdf:type ontology:Q1002697 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation place of publication
type periodical literature
[{'concept': 'periodical literature'}, 'place of publication', 'United Kingdom']
SELECT DISTINCT ?z WHERE { ?z property:place_of_publication resource:United_Kingdom . ?z rdf:type ontology:periodical_literature }
[]
periodical literature
Q7333536 Q752796 Q5116865
SYSTEM
Right Now!, Sinclair User, Church of England Newspaper
Q7333536 Q752796 Q5116865
(c(Q1002697),P291,Q145)
action filter_type
action find_reverse
entity Q145
relation P291
type Q1002697
[ANSWERS] were published in United Kingdom
[{'concept': 'Q1002697'}, 'P291', 'Q145']
SELECT DISTINCT ?z WHERE { ?z property:P291 resource:Q145 . ?z rdf:type ontology:Q1002697 }
Right Now! Sinclair User Church of England Newspaper
Right Now!, Sinclair User and Church of England Newspaper were published in United Kingdom
Right Now! Sinclair User Church of England Newspaper
action filter_type
action find_reverse
entity United Kingdom
relation place of publication
type periodical literature
[{'concept': 'periodical literature'}, 'place of publication', 'United Kingdom']
SELECT DISTINCT ?z WHERE { ?z property:place_of_publication resource:United_Kingdom . ?z rdf:type ontology:periodical_literature }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P127
Q838948
USER
Which work of art is under posessision of United Kingdom ?
(c(Q838948),P127,Q145)
action filter_type
action find_reverse
entity Q145
relation P127
type Q838948
[{'concept': 'Q838948'}, 'P127', 'Q145']
SELECT DISTINCT ?o WHERE { ?o property:P127 resource:Q145 . ?o rdf:type ontology:Q838948 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation owned by
type work of art
[{'concept': 'work of art'}, 'owned by', 'United Kingdom']
SELECT DISTINCT ?o WHERE { ?o property:owned_by resource:United_Kingdom . ?o rdf:type ontology:work_of_art }
[]
work of art
Q1439502
SYSTEM
Napoleon as Mars the Peacemaker
Q1439502
(c(Q838948),P127,Q145)
action filter_type
action find_reverse
entity Q145
relation P127
type Q838948
[ANSWER] is under posessision of United Kingdom
[{'concept': 'Q838948'}, 'P127', 'Q145']
SELECT DISTINCT ?o WHERE { ?o property:P127 resource:Q145 . ?o rdf:type ontology:Q838948 }
Napoleon as Mars the Peacemaker
Napoleon as Mars the Peacemaker is under posessision of United Kingdom
Napoleon as Mars the Peacemaker
action filter_type
action find_reverse
entity United Kingdom
relation owned by
type work of art
[{'concept': 'work of art'}, 'owned by', 'United Kingdom']
SELECT DISTINCT ?o WHERE { ?o property:owned_by resource:United_Kingdom . ?o rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1439502
P186
Q8063
USER
Which rock is used to make that work of art ?
(Q1439502,P186,c(Q8063))
action filter_type
action find
entity Q1439502
relation P186
type Q8063
['Q1439502', 'P186', {'concept': 'Q8063'}]
SELECT DISTINCT ?m WHERE { resource:Q1439502 property:P186 ?m . ?m rdf:type ontology:Q8063 }
Napoleon as Mars the Peacemaker
action filter_type
action find
entity Napoleon as Mars the Peacemaker
relation material used
type rock
['Napoleon as Mars the Peacemaker', 'material used', {'concept': 'rock'}]
SELECT DISTINCT ?m WHERE { resource:Napoleon_as_Mars_the_Peacemaker property:material_used ?m . ?m rdf:type ontology:rock }
[]
rock
Q40861
SYSTEM
marble
Q40861
(Q1439502,P186,c(Q8063))
action filter_type
action find
entity Q1439502
relation P186
type Q8063
[ANSWER] is used to make that work of art
['Q1439502', 'P186', {'concept': 'Q8063'}]
SELECT DISTINCT ?m WHERE { resource:Q1439502 property:P186 ?m . ?m rdf:type ontology:Q8063 }
marble
Marble is used to make that work of art
marble
action filter_type
action find
entity Napoleon as Mars the Peacemaker
relation material used
type rock
['Napoleon as Mars the Peacemaker', 'material used', {'concept': 'rock'}]
SELECT DISTINCT ?m WHERE { resource:Napoleon_as_Mars_the_Peacemaker property:material_used ?m . ?m rdf:type ontology:rock }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P186
Q8063 Q811979
USER
How many architectural structures are made from approximately 2 rocks ?
(c(Q811979),P186,c(Q8063))
action count
action approx
action find_tuple_counts
relation P186
type Q811979
type Q8063
value 2
[{'concept': 'Q811979'}, 'P186', {'concept': 'Q8063'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?a ) AS ?x ) WHERE { ?k rdf:type ontology:Q811979 . ?a rdf:type ontology:Q8063 . ?k property:P186 ?a } GROUP BY ?k } . FILTER ( ?x = 2 ) }
action count
action approx
action find_tuple_counts
relation material used
type architectural structure
type rock
value 2
[{'concept': 'architectural structure'}, 'material used', {'concept': 'rock'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?a ) AS ?x ) WHERE { ?k rdf:type ontology:architectural_structure . ?a rdf:type ontology:rock . ?k property:material_used ?a } GROUP BY ?k } . FILTER ( ?x = 2 ) }
[]
rock architectural structure
SYSTEM
3
Q15870077 Q15948823 Q19251655
(c(Q811979),P186,c(Q8063))
action count
action approx
action find_tuple_counts
relation P186
type Q811979
type Q8063
value 2
[ANSWER]
[{'concept': 'Q811979'}, 'P186', {'concept': 'Q8063'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?a ) AS ?x ) WHERE { ?k rdf:type ontology:Q811979 . ?a rdf:type ontology:Q8063 . ?k property:P186 ?a } GROUP BY ?k } . FILTER ( ?x = 2 ) }
The Doughnut fontaine de la Pyramide Water Boat fountain
3
action count
action approx
action find_tuple_counts
relation material used
type architectural structure
type rock
value 2
[{'concept': 'architectural structure'}, 'material used', {'concept': 'rock'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?a ) AS ?x ) WHERE { ?k rdf:type ontology:architectural_structure . ?a rdf:type ontology:rock . ?k property:material_used ?a } GROUP BY ?k } . FILTER ( ?x = 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q9630
P361
Q12737077 Q7210356
USER
How many occupations and political organizations are parts of Labour Party ?
(c(Q12737077),P361,Q9630) (c(Q7210356),P361,Q9630)
action count
action union
action filter_type
action find_reverse
entity Q9630
relation P361
type Q12737077
action filter_type
action find_reverse
entity Q9630
relation P361
type Q7210356
[{'concept': 'Q12737077'}, 'P361', 'Q9630'] [{'concept': 'Q7210356'}, 'P361', 'Q9630']
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { ?f property:P361 resource:Q9630 . ?f rdf:type ontology:Q12737077 } UNION { ?f property:P361 resource:Q9630 . ?f rdf:type ontology:Q7210356 } }
Labour Party
action count
action union
action filter_type
action find_reverse
entity Labour Party
relation part of
type occupation
action filter_type
action find_reverse
entity Labour Party
relation part of
type political organization
[{'concept': 'occupation'}, 'part of', 'Labour Party'] [{'concept': 'political organization'}, 'part of', 'Labour Party']
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { ?f property:part_of resource:Labour_Party . ?f rdf:type ontology:occupation } UNION { ?f property:part_of resource:Labour_Party . ?f rdf:type ontology:political_organization } }
[]
occupation political organization
SYSTEM
2 occupations and 2 political organizations
Q832685 Q6467390 Q3615378 Q3179541
(c(Q12737077),P361,Q9630) (c(Q7210356),P361,Q9630)
action count
action union
action filter_type
action find_reverse
entity Q9630
relation P361
type Q12737077
action filter_type
action find_reverse
entity Q9630
relation P361
type Q7210356
[ANSWER]
[{'concept': 'Q12737077'}, 'P361', 'Q9630'] [{'concept': 'Q7210356'}, 'P361', 'Q9630']
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { ?f property:P361 resource:Q9630 . ?f rdf:type ontology:Q12737077 } UNION { ?f property:P361 resource:Q9630 . ?f rdf:type ontology:Q7210356 } }
Welsh Labour Labour Chief Whip Leader of the Labour Party Scottish Labour Party
2 occupations and 2 political organizations
action count
action union
action filter_type
action find_reverse
entity Labour Party
relation part of
type occupation
action filter_type
action find_reverse
entity Labour Party
relation part of
type political organization
[{'concept': 'occupation'}, 'part of', 'Labour Party'] [{'concept': 'political organization'}, 'part of', 'Labour Party']
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { ?f property:part_of resource:Labour_Party . ?f rdf:type ontology:occupation } UNION { ?f property:part_of resource:Labour_Party . ?f rdf:type ontology:political_organization } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P186
Q8063 Q3565782
USER
Which navigational aids are constructed max number of rocks ?
(c(Q3565782),P186,c(Q8063))
action argmax
action find_tuple_counts
relation P186
type Q3565782
type Q8063
[{'concept': 'Q3565782'}, 'P186', {'concept': 'Q8063'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?x ) { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?a ) WHERE { ?s rdf:type ontology:Q3565782 . ?o rdf:type ontology:Q8063 . ?s property:P186 ?o } GROUP BY ?s } } . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?w ) WHERE { ?d property:P186 ?p . ?d rdf:type ontology:Q3565782 . ?p rdf:type ontology:Q8063 } GROUP BY ?d } . FILTER ( ?w = ?x ) }
action argmax
action find_tuple_counts
relation material used
type navigational aid
type rock
[{'concept': 'navigational aid'}, 'material used', {'concept': 'rock'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?x ) { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?a ) WHERE { ?s rdf:type ontology:navigational_aid . ?o rdf:type ontology:rock . ?s property:material_used ?o } GROUP BY ?s } } . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?w ) WHERE { ?d property:material_used ?p . ?d rdf:type ontology:navigational_aid . ?p rdf:type ontology:rock } GROUP BY ?d } . FILTER ( ?w = ?x ) }
[]
rock navigational aid
Q18668420 Q7666295 Q7810653
SYSTEM
Cape Spear Lighthouse, Söderarm lighthouse, Tjärven
Q18668420 Q6755249 Q2085015 Q1518751 Q7666295 Q7810653 Q7651711 Q1024406 Q3378198
(c(Q3565782),P186,c(Q8063))
action argmax
action find_tuple_counts
relation P186
type Q3565782
type Q8063
[ANSWERS] are constructed max number of rocks
[{'concept': 'Q3565782'}, 'P186', {'concept': 'Q8063'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?x ) { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?a ) WHERE { ?s rdf:type ontology:Q3565782 . ?o rdf:type ontology:Q8063 . ?s property:P186 ?o } GROUP BY ?s } } . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?w ) WHERE { ?d property:P186 ?p . ?d rdf:type ontology:Q3565782 . ?p rdf:type ontology:Q8063 } GROUP BY ?d } . FILTER ( ?w = ?x ) }
Cape Spear Lighthouse Marblehead Light La Vieille Kullen Lighthouse Söderarm lighthouse Tjärven Svartklubben Långe Erik Cap-des-Rosiers Lighthouse
Cape Spear Lighthouse, Söderarm lighthouse and Tjärven are constructed max number of rocks
Cape Spear Lighthouse Söderarm lighthouse Tjärven
action argmax
action find_tuple_counts
relation material used
type navigational aid
type rock
[{'concept': 'navigational aid'}, 'material used', {'concept': 'rock'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?x ) { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?a ) WHERE { ?s rdf:type ontology:navigational_aid . ?o rdf:type ontology:rock . ?s property:material_used ?o } GROUP BY ?s } } . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?w ) WHERE { ?d property:material_used ?p . ?d rdf:type ontology:navigational_aid . ?p rdf:type ontology:rock } GROUP BY ?d } . FILTER ( ?w = ?x ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q18668420 Q7666295 Q7810653
P186
Q8063
USER
Which rocks are used to manufacture those navigational aids ?
(Q18668420,P186,c(Q8063)) (Q7666295,P186,c(Q8063)) (Q7810653,P186,c(Q8063))
action filter_type
action find
entity prev_answer
relation P186
type Q8063
['Q18668420', 'P186', {'concept': 'Q8063'}] ['Q7666295', 'P186', {'concept': 'Q8063'}] ['Q7810653', 'P186', {'concept': 'Q8063'}]
SELECT DISTINCT ?m WHERE { ?y property:P186 ?m . VALUES ( ?y ) { ( resource:Q18668420 ) ( resource:Q6755249 ) ( resource:Q2085015 ) } . ?m rdf:type ontology:Q8063 }
Cape Spear Lighthouse Söderarm lighthouse Tjärven
action filter_type
action find
entity prev_answer
relation material used
type rock
['Cape Spear Lighthouse', 'material used', {'concept': 'rock'}] ['Söderarm lighthouse', 'material used', {'concept': 'rock'}] ['Tjärven', 'material used', {'concept': 'rock'}]
SELECT DISTINCT ?m WHERE { ?y property:material_used ?m . VALUES ( ?y ) { ( resource:Cape_Spear_Lighthouse ) ( resource:Marblehead_Light ) ( resource:La_Vieille ) } . ?m rdf:type ontology:rock }
[]
rock
Q23757 Q41177 Q41177
SYSTEM
limestone for 1st, granite for 2nd, 3rd
Q23757 Q41177 Q41177
(Q18668420,P186,c(Q8063)) (Q7666295,P186,c(Q8063)) (Q7810653,P186,c(Q8063))
action filter_type
action find
entity prev_answer
relation P186
type Q8063
[ANSWERS]
['Q18668420', 'P186', {'concept': 'Q8063'}] ['Q7666295', 'P186', {'concept': 'Q8063'}] ['Q7810653', 'P186', {'concept': 'Q8063'}]
SELECT DISTINCT ?m WHERE { ?y property:P186 ?m . VALUES ( ?y ) { ( resource:Q18668420 ) ( resource:Q6755249 ) ( resource:Q2085015 ) } . ?m rdf:type ontology:Q8063 }
limestone granite granite
Limestone, granite and granite are used to manufacture those navigational aids
limestone granite granite
action filter_type
action find
entity prev_answer
relation material used
type rock
['Cape Spear Lighthouse', 'material used', {'concept': 'rock'}] ['Söderarm lighthouse', 'material used', {'concept': 'rock'}] ['Tjärven', 'material used', {'concept': 'rock'}]
SELECT DISTINCT ?m WHERE { ?y property:material_used ?m . VALUES ( ?y ) { ( resource:Cape_Spear_Lighthouse ) ( resource:Marblehead_Light ) ( resource:La_Vieille ) } . ?m rdf:type ontology:rock }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9630
P159
Q2221906
USER
Where is the headquarter of Labour Party located ?
(Q9630,P159,c(Q2221906))
action filter_type
action find
entity Q9630
relation P159
type Q2221906
['Q9630', 'P159', {'concept': 'Q2221906'}]
SELECT DISTINCT ?l WHERE { resource:Q9630 property:P159 ?l . ?l rdf:type ontology:Q2221906 }
Labour Party
action filter_type
action find
entity Labour Party
relation headquarters location
type geographic location
['Labour Party', 'headquarters location', {'concept': 'geographic location'}]
SELECT DISTINCT ?l WHERE { resource:Labour_Party property:headquarters_location ?l . ?l rdf:type ontology:geographic_location }
[]
geographic location
Q179351
SYSTEM
City of Westminster
Q179351
(Q9630,P159,c(Q2221906))
action filter_type
action find
entity Q9630
relation P159
type Q2221906
The headquarter of Labour Party is located in [ANSWER]
['Q9630', 'P159', {'concept': 'Q2221906'}]
SELECT DISTINCT ?l WHERE { resource:Q9630 property:P159 ?l . ?l rdf:type ontology:Q2221906 }
City of Westminster
The headquarter of Labour Party is located in City of Westminster
City of Westminster
action filter_type
action find
entity Labour Party
relation headquarters location
type geographic location
['Labour Party', 'headquarters location', {'concept': 'geographic location'}]
SELECT DISTINCT ?l WHERE { resource:Labour_Party property:headquarters_location ?l . ?l rdf:type ontology:geographic_location }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9630
P108
Q502895
USER
Which people are working for Labour Party ?
(c(Q502895),P108,Q9630)
action filter_type
action find_reverse
entity Q9630
relation P108
type Q502895
[{'concept': 'Q502895'}, 'P108', 'Q9630']
SELECT DISTINCT ?z WHERE { ?z property:P108 resource:Q9630 . ?z rdf:type ontology:Q502895 }
Labour Party
action filter_type
action find_reverse
entity Labour Party
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Labour Party']
SELECT DISTINCT ?z WHERE { ?z property:employer resource:Labour_Party . ?z rdf:type ontology:common_name }
[]
common name
Q8064075 Q2086183 Q7782897
SYSTEM
Zack Exley, Philip Gould, Baron Gould of Brookwood, Theresa Stewart
Q8064075 Q2086183 Q7782897
(c(Q502895),P108,Q9630)
action filter_type
action find_reverse
entity Q9630
relation P108
type Q502895
[ANSWERS] are working for Labour Party
[{'concept': 'Q502895'}, 'P108', 'Q9630']
SELECT DISTINCT ?z WHERE { ?z property:P108 resource:Q9630 . ?z rdf:type ontology:Q502895 }
Zack Exley Philip Gould, Baron Gould of Brookwood Theresa Stewart
Zack Exley, Philip Gould, Baron Gould of Brookwood and Theresa Stewart are working for Labour Party
Zack Exley Philip Gould, Baron Gould of Brookwood Theresa Stewart
action filter_type
action find_reverse
entity Labour Party
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Labour Party']
SELECT DISTINCT ?z WHERE { ?z property:employer resource:Labour_Party . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9630
P488
Q502895
USER
Who was the chairperson of Labour Party ?
(Q9630,P488,c(Q502895))
action filter_type
action find
entity Q9630
relation P488
type Q502895
['Q9630', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q9630 property:P488 ?g . ?g rdf:type ontology:Q502895 }
Labour Party
action filter_type
action find
entity Labour Party
relation chairperson
type common name
['Labour Party', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Labour_Party property:chairperson ?g . ?g rdf:type ontology:common_name }
[]
common name
Q216594
SYSTEM
Ed Miliband
Q216594
(Q9630,P488,c(Q502895))
action filter_type
action find
entity Q9630
relation P488
type Q502895
The chairperson of Labour Party was the [ANSWER]
['Q9630', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q9630 property:P488 ?g . ?g rdf:type ontology:Q502895 }
Ed Miliband
The chairperson of Labour Party was the Ed Miliband
Ed Miliband
action filter_type
action find
entity Labour Party
relation chairperson
type common name
['Labour Party', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Labour_Party property:chairperson ?g . ?g rdf:type ontology:common_name }
[]