Simple Question (Direct)
Simple Question
Q3524492
P39
Q12737077
USER
What was the position for which Thierry Repentin was appointed ?
(Q3524492,P39,c(Q12737077))
action filter_type
action find
entity Q3524492
relation P39
type Q12737077
['Q3524492', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . resource:Q3524492 property:P39 ?s }
Thierry Repentin
action filter_type
action find
entity Thierry Repentin
relation position held
type occupation
['Thierry Repentin', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . resource:Thierry_Repentin property:position_held ?s }
[]
occupation
Q14828018
SYSTEM
member of the Senate of France
Q14828018
(Q3524492,P39,c(Q12737077))
action filter_type
action find
entity Q3524492
relation P39
type Q12737077
The [ANSWER]
['Q3524492', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . resource:Q3524492 property:P39 ?s }
member of the Senate of France
The member of the Senate of France
member of the Senate of France
action filter_type
action find
entity Thierry Repentin
relation position held
type occupation
['Thierry Repentin', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . resource:Thierry_Repentin property:position_held ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q14828018
P1001
Q15617994
USER
Which administrative territory is linked to that occupation ?
(Q14828018,P1001,c(Q15617994))
action filter_type
action find
entity Q14828018
relation P1001
type Q15617994
['Q14828018', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q14828018 property:P1001 ?s . ?s rdf:type ontology:Q15617994 }
member of the Senate of France
action filter_type
action find
entity member of the Senate of France
relation applies to jurisdiction
type designation for an administrative territorial entity
['member of the Senate of France', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:member_of_the_Senate_of_France property:applies_to_jurisdiction ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q14828018,P1001,c(Q15617994))
action filter_type
action find
entity Q14828018
relation P1001
type Q15617994
[ANSWER] is linked to that occupation
['Q14828018', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q14828018 property:P1001 ?s . ?s rdf:type ontology:Q15617994 }
France
France is linked to that occupation
France
action filter_type
action find
entity member of the Senate of France
relation applies to jurisdiction
type designation for an administrative territorial entity
['member of the Senate of France', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:member_of_the_Senate_of_France property:applies_to_jurisdiction ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q14957218
Q15617994
USER
And also tell me about Shadow Secretary of State for Scotland?
(Q14957218,P1001,c(Q15617994))
action filter_type
action find
entity Q14957218
relation P1001
type Q15617994
['Q14957218', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q14957218 property:P1001 ?g . ?g rdf:type ontology:Q15617994 }
Shadow Secretary of State for Scotland
action filter_type
action find
entity Shadow Secretary of State for Scotland
relation applies to jurisdiction
type designation for an administrative territorial entity
['Shadow Secretary of State for Scotland', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Shadow_Secretary_of_State_for_Scotland property:applies_to_jurisdiction ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q14957218,P1001,c(Q15617994))
action filter_type
action find
entity Q14957218
relation P1001
type Q15617994
[ANSWER]
['Q14957218', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q14957218 property:P1001 ?g . ?g rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom
action filter_type
action find
entity Shadow Secretary of State for Scotland
relation applies to jurisdiction
type designation for an administrative territorial entity
['Shadow Secretary of State for Scotland', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Shadow_Secretary_of_State_for_Scotland property:applies_to_jurisdiction ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q17624846 Q14828018
P17
Q15617994
USER
Which administrative territories do member of the Senate of France and Château de Sieyes belong to ?
AND((Q14828018,P17,c(Q15617994)), (Q17624846,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q14828018
relation P17
action find
entity Q17624846
relation P17
type Q15617994
{'AND': [['Q14828018', 'P17', {'concept': 'Q15617994'}], ['Q17624846', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { resource:Q14828018 property:P17 ?b . resource:Q17624846 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
Château de Sieyes member of the Senate of France
action filter_type
action intersection
action find
entity member of the Senate of France
relation country
action find
entity Château de Sieyes
relation country
type designation for an administrative territorial entity
{'AND': [['member of the Senate of France', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Château de Sieyes', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { resource:member_of_the_Senate_of_France property:country ?b . resource:Château_de_Sieyes property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
AND((Q14828018,P17,c(Q15617994)), (Q17624846,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q14828018
relation P17
action find
entity Q17624846
relation P17
type Q15617994
[ANSWER] member of the Senate of [ANSWER] and Château de Sieyes belong to
{'AND': [['Q14828018', 'P17', {'concept': 'Q15617994'}], ['Q17624846', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { resource:Q14828018 property:P17 ?b . resource:Q17624846 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
France
France member of the Senate of France and Château de Sieyes belong to
France
action filter_type
action intersection
action find
entity member of the Senate of France
relation country
action find
entity Château de Sieyes
relation country
type designation for an administrative territorial entity
{'AND': [['member of the Senate of France', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Château de Sieyes', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { resource:member_of_the_Senate_of_France property:country ?b . resource:Château_de_Sieyes property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q838948 Q2342494
USER
How many administrative territories are the origin of approximately the same number of works of art and collectables as that administrative territory ?
(c(Q838948)|c(Q2342494),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q142
relation P495
type Q838948
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) ?q WHERE { VALUES ( ?w ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?l rdf:type ?w } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { ?z property:P495 resource:Q142 . { VALUES ( ?y ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?z rdf:type ?y } } } . FILTER ( ?d = ?h ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity France
relation country of origin
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) ?q WHERE { VALUES ( ?w ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?l rdf:type ?w } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { ?z property:country_of_origin resource:France . { VALUES ( ?y ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?z rdf:type ?y } } } . FILTER ( ?d = ?h ) }
[]
designation for an administrative territorial entity work of art collectable
SYSTEM
3
Q142 Q145 Q38
(c(Q838948)|c(Q2342494),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q142
relation P495
type Q838948
type Q2342494
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) ?q WHERE { VALUES ( ?w ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?l rdf:type ?w } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { ?z property:P495 resource:Q142 . { VALUES ( ?y ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?z rdf:type ?y } } } . FILTER ( ?d = ?h ) }
France United Kingdom Italy
3
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity France
relation country of origin
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) ?q WHERE { VALUES ( ?w ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?l rdf:type ?w } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { ?z property:country_of_origin resource:France . { VALUES ( ?y ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?z rdf:type ?y } } } . FILTER ( ?d = ?h ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relations with approximately 55 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 55
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?a ) WHERE { ?w property:P530 ?s . ?w rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?a = 55 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 55
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?a ) WHERE { ?w property:diplomatic_relation ?s . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?a = 55 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
1
Q155
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 55
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?a ) WHERE { ?w property:P530 ?s . ?w rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?a = 55 ) }
Brazil
1
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 55
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?a ) WHERE { ?w property:diplomatic_relation ?s . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?a = 55 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2475843 Q3524492
P937
Q56061
USER
Which administrative territories did Thierry Repentin or Ulrich Giesekus work ?
OR((Q3524492,P937,c(Q56061)), (Q2475843,P937,c(Q56061)))
action filter_type
action union
action find
entity Q3524492
relation P937
action find
entity Q2475843
relation P937
type Q56061
{'OR': [['Q3524492', 'P937', {'concept': 'Q56061'}], ['Q2475843', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q2475843 property:P937 ?q } UNION { resource:Q3524492 property:P937 ?q } } . ?q rdf:type ontology:Q56061 }
Ulrich Giesekus Thierry Repentin
action filter_type
action union
action find
entity Thierry Repentin
relation work location
action find
entity Ulrich Giesekus
relation work location
type administrative territorial entity
{'OR': [['Thierry Repentin', 'work location', {'concept': 'administrative territorial entity'}], ['Ulrich Giesekus', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Ulrich_Giesekus property:work_location ?q } UNION { resource:Thierry_Repentin property:work_location ?q } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90 Q82838
SYSTEM
Paris, Freudenstadt
Q90 Q82838
OR((Q3524492,P937,c(Q56061)), (Q2475843,P937,c(Q56061)))
action filter_type
action union
action find
entity Q3524492
relation P937
action find
entity Q2475843
relation P937
type Q56061
Thierry Repentin or Ulrich Giesekus worked in [ANSWERS]
{'OR': [['Q3524492', 'P937', {'concept': 'Q56061'}], ['Q2475843', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q2475843 property:P937 ?q } UNION { resource:Q3524492 property:P937 ?q } } . ?q rdf:type ontology:Q56061 }
Paris Freudenstadt
Thierry Repentin or Ulrich Giesekus worked in Paris and Freudenstadt
Paris Freudenstadt
action filter_type
action union
action find
entity Thierry Repentin
relation work location
action find
entity Ulrich Giesekus
relation work location
type administrative territorial entity
{'OR': [['Thierry Repentin', 'work location', {'concept': 'administrative territorial entity'}], ['Ulrich Giesekus', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Ulrich_Giesekus property:work_location ?q } UNION { resource:Thierry_Repentin property:work_location ?q } } . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q90 Q82838
P6
Q502895
USER
What people are Paris and Freudenstadt the head of goverment of ?
(Q90,P6,c(Q502895)) (Q82838,P6,c(Q502895))
action union
action filter_type
action find
entity Q90
relation P6
type Q502895
action filter_type
action find
entity Q82838
relation P6
type Q502895
['Q90', 'P6', {'concept': 'Q502895'}] ['Q82838', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { { resource:Q82838 property:P6 ?o . ?o rdf:type ontology:Q502895 } UNION { resource:Q90 property:P6 ?o . ?o rdf:type ontology:Q502895 } }
Paris Freudenstadt
action union
action filter_type
action find
entity Paris
relation head of government
type common name
action filter_type
action find
entity Freudenstadt
relation head of government
type common name
['Paris', 'head of government', {'concept': 'common name'}] ['Freudenstadt', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { { resource:Freudenstadt property:head_of_government ?o . ?o rdf:type ontology:common_name } UNION { resource:Paris property:head_of_government ?o . ?o rdf:type ontology:common_name } }
[]
common name
Q2105 Q289303 Q1685859
SYSTEM
Jacques Chirac, Étienne Arago, Jean Tiberi
Q1986521 Q2105 Q289303 Q1685859 Q256294 Q1685102 Q601266 Q2596877 Q677730 Q959708 Q3131449 Q947901 Q2851133 Q656015 Q1684642 Q1685301 Q1712035
(Q90,P6,c(Q502895)) (Q82838,P6,c(Q502895))
action union
action filter_type
action find
entity Q90
relation P6
type Q502895
action filter_type
action find
entity Q82838
relation P6
type Q502895
[ANSWERS] are Paris and Freudenstadt the head of goverment of
['Q90', 'P6', {'concept': 'Q502895'}] ['Q82838', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { { resource:Q82838 property:P6 ?o . ?o rdf:type ontology:Q502895 } UNION { resource:Q90 property:P6 ?o . ?o rdf:type ontology:Q502895 } }
Nicolas Chambon Jacques Chirac Étienne Arago Jean Tiberi Bertrand Delanoë Jean-Nicolas Pache Louis-Antoine Garnier-Pagès René Boucher Armand Marrast Jules Ferry Henri Lefèvre d'Ormesson Jérôme Pétion de Villeneuve Anne Hidalgo Philibert Borie Jean-Baptiste Fleuriot-Lescot Jean Sylvain Bailly Julian Oswald
Jacques Chirac, Étienne Arago and Jean Tiberi are Paris and Freudenstadt the head of goverment of
Jacques Chirac Étienne Arago Jean Tiberi
action union
action filter_type
action find
entity Paris
relation head of government
type common name
action filter_type
action find
entity Freudenstadt
relation head of government
type common name
['Paris', 'head of government', {'concept': 'common name'}] ['Freudenstadt', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { { resource:Freudenstadt property:head_of_government ?o . ?o rdf:type ontology:common_name } UNION { resource:Paris property:head_of_government ?o . ?o rdf:type ontology:common_name } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2105 Q289303 Q1685859
P6
Q56061
USER
Which administrative territories have a government lead by those people ?
(c(Q56061),P6,Q2105) (c(Q56061),P6,Q289303) (c(Q56061),P6,Q1685859)
action filter_type
action find_reverse
entity prev_answer
relation P6
type Q56061
[{'concept': 'Q56061'}, 'P6', 'Q2105'] [{'concept': 'Q56061'}, 'P6', 'Q289303'] [{'concept': 'Q56061'}, 'P6', 'Q1685859']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q56061 . VALUES ( ?d ) { ( resource:Q1986521 ) ( resource:Q2105 ) ( resource:Q289303 ) } . ?y property:P6 ?d }
Jacques Chirac Étienne Arago Jean Tiberi
action filter_type
action find_reverse
entity prev_answer
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', 'Jacques Chirac'] [{'concept': 'administrative territorial entity'}, 'head of government', 'Étienne Arago'] [{'concept': 'administrative territorial entity'}, 'head of government', 'Jean Tiberi']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity . VALUES ( ?d ) { ( resource:Nicolas_Chambon ) ( resource:Jacques_Chirac ) ( resource:Étienne_Arago ) } . ?y property:head_of_government ?d }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(c(Q56061),P6,Q2105) (c(Q56061),P6,Q289303) (c(Q56061),P6,Q1685859)
action filter_type
action find_reverse
entity prev_answer
relation P6
type Q56061
[ANSWER] have a government lead by those people
[{'concept': 'Q56061'}, 'P6', 'Q2105'] [{'concept': 'Q56061'}, 'P6', 'Q289303'] [{'concept': 'Q56061'}, 'P6', 'Q1685859']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q56061 . VALUES ( ?d ) { ( resource:Q1986521 ) ( resource:Q2105 ) ( resource:Q289303 ) } . ?y property:P6 ?d }
Paris
Paris have a government lead by those people
Paris
action filter_type
action find_reverse
entity prev_answer
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', 'Jacques Chirac'] [{'concept': 'administrative territorial entity'}, 'head of government', 'Étienne Arago'] [{'concept': 'administrative territorial entity'}, 'head of government', 'Jean Tiberi']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:administrative_territorial_entity . VALUES ( ?d ) { ( resource:Nicolas_Chambon ) ( resource:Jacques_Chirac ) ( resource:Étienne_Arago ) } . ?y property:head_of_government ?d }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2105
P991
Q40231
USER
Which elections were Jacques Chirac elected from ?
(c(Q40231),P991,Q2105)
action filter_type
action find_reverse
entity Q2105
relation P991
type Q40231
[{'concept': 'Q40231'}, 'P991', 'Q2105']
SELECT DISTINCT ?y WHERE { ?y property:P991 resource:Q2105 . ?y rdf:type ontology:Q40231 }
Jacques Chirac
action filter_type
action find_reverse
entity Jacques Chirac
relation successful candidate
type election
[{'concept': 'election'}, 'successful candidate', 'Jacques Chirac']
SELECT DISTINCT ?y WHERE { ?y property:successful_candidate resource:Jacques_Chirac . ?y rdf:type ontology:election }
[]
election
Q1129306 Q1450660
SYSTEM
French presidential election 2002, French presidential election, 1995
Q1129306 Q1450660
(c(Q40231),P991,Q2105)
action filter_type
action find_reverse
entity Q2105
relation P991
type Q40231
[ANSWERS]
[{'concept': 'Q40231'}, 'P991', 'Q2105']
SELECT DISTINCT ?y WHERE { ?y property:P991 resource:Q2105 . ?y rdf:type ontology:Q40231 }
French presidential election 2002 French presidential election, 1995
Jacques Chirac were elected in French presidential election 2002 and French presidential election, 1995
French presidential election 2002 French presidential election, 1995
action filter_type
action find_reverse
entity Jacques Chirac
relation successful candidate
type election
[{'concept': 'election'}, 'successful candidate', 'Jacques Chirac']
SELECT DISTINCT ?y WHERE { ?y property:successful_candidate resource:Jacques_Chirac . ?y rdf:type ontology:election }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1129306 Q1450660
P17
Q15617994
USER
Which administrative territories are those elections situated in ?
(Q1129306,P17,c(Q15617994)) (Q1450660,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q1129306', 'P17', {'concept': 'Q15617994'}] ['Q1450660', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . VALUES ( ?w ) { ( resource:Q1129306 ) ( resource:Q1450660 ) } . ?w property:P17 ?p }
French presidential election 2002 French presidential election, 1995
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['French presidential election 2002', 'country', {'concept': 'designation for an administrative territorial entity'}] ['French presidential election, 1995', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?w ) { ( resource:French_presidential_election_2002 ) ( resource:French_presidential_election,_1995 ) } . ?w property:country ?p }
[]
designation for an administrative territorial entity
Q142 Q142
SYSTEM
France
Q142 Q142
(Q1129306,P17,c(Q15617994)) (Q1450660,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
Those elections are situated in [ANSWER] and [ANSWER]
['Q1129306', 'P17', {'concept': 'Q15617994'}] ['Q1450660', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . VALUES ( ?w ) { ( resource:Q1129306 ) ( resource:Q1450660 ) } . ?w property:P17 ?p }
France France
Those elections are situated in France and France
France France
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['French presidential election 2002', 'country', {'concept': 'designation for an administrative territorial entity'}] ['French presidential election, 1995', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?w ) { ( resource:French_presidential_election_2002 ) ( resource:French_presidential_election,_1995 ) } . ?w property:country ?p }
[]