Simple Question (Direct)
Simple Question
Q3452296
P17
Q15617994
USER
Which administrative territory does rue du Faubourg-Montmartre belong to ?
(Q3452296,P17,c(Q15617994))
action filter_type
action find
entity Q3452296
relation P17
type Q15617994
['Q3452296', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q3452296 property:P17 ?w . ?w rdf:type ontology:Q15617994 }
rue du Faubourg-Montmartre
action filter_type
action find
entity rue du Faubourg-Montmartre
relation country
type designation for an administrative territorial entity
['rue du Faubourg-Montmartre', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:rue_du_Faubourg-Montmartre property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3452296,P17,c(Q15617994))
action filter_type
action find
entity Q3452296
relation P17
type Q15617994
Rue du Faubourg-Montmartre belongs to [ANSWER]
['Q3452296', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q3452296 property:P17 ?w . ?w rdf:type ontology:Q15617994 }
France
Rue du Faubourg-Montmartre belongs to France
France
action filter_type
action find
entity rue du Faubourg-Montmartre
relation country
type designation for an administrative territorial entity
['rue du Faubourg-Montmartre', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:rue_du_Faubourg-Montmartre property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3452296
P47
Q34442
USER
Which roads share border with that one ?
(Q142,P47,c(Q34442))
action filter_type
action find
entity Q3452296
relation P47
type Q34442
['Q142', 'P47', {'concept': 'Q34442'}]
SELECT DISTINCT ?g WHERE { resource:Q3452296 property:P47 ?g . ?g rdf:type ontology:Q34442 }
rue du Faubourg-Montmartre
action filter_type
action find
entity rue du Faubourg-Montmartre
relation shares border with
type road
['France', 'shares border with', {'concept': 'road'}]
SELECT DISTINCT ?g WHERE { resource:rue_du_Faubourg-Montmartre property:shares_border_with ?g . ?g rdf:type ontology:road }
[]
road
Q3448685 Q3449238 Q3450870
SYSTEM
rue La Fayette, rue Montmartre, rue de Maubeuge
Q3447269 Q3450663 Q3447129 Q3447707 Q3449920 Q479113 Q3450870 Q3449238 Q3448738 Q3447284 Q3448685 Q3447919 Q3449728 Q290327 Q3449322 Q3451445
(Q142,P47,c(Q34442))
action filter_type
action find
entity Q3452296
relation P47
type Q34442
[ANSWERS] share border with that one
['Q142', 'P47', {'concept': 'Q34442'}]
SELECT DISTINCT ?g WHERE { resource:Q3452296 property:P47 ?g . ?g rdf:type ontology:Q34442 }
rue Buffault rue de Châteaudun rue Bergère rue Drouot rue Saint-Lazare rue des Martyrs rue de Maubeuge rue Montmartre rue Lamartine rue Cadet rue La Fayette rue Fléchier rue Richer rue de Provence rue Notre-Dame-de-Lorette rue de la Grange-Batelière
Rue La Fayette, rue Montmartre and rue de Maubeuge share border with that one
rue La Fayette rue Montmartre rue de Maubeuge
action filter_type
action find
entity rue du Faubourg-Montmartre
relation shares border with
type road
['France', 'shares border with', {'concept': 'road'}]
SELECT DISTINCT ?g WHERE { resource:rue_du_Faubourg-Montmartre property:shares_border_with ?g . ?g rdf:type ontology:road }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3451106 Q3449238
P47
Q34442
USER
Which roads share the border with rue Montmartre or rue de Turbigo ?
OR((Q3449238,P47,c(Q34442)), (Q3451106,P47,c(Q34442)))
action filter_type
action union
action find
entity Q3449238
relation P47
action find
entity Q3451106
relation P47
type Q34442
{'OR': [['Q3449238', 'P47', {'concept': 'Q34442'}], ['Q3451106', 'P47', {'concept': 'Q34442'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q3449238 property:P47 ?t } UNION { resource:Q3451106 property:P47 ?t } } . ?t rdf:type ontology:Q34442 }
rue de Turbigo rue Montmartre
action filter_type
action union
action find
entity rue Montmartre
relation shares border with
action find
entity rue de Turbigo
relation shares border with
type road
{'OR': [['rue Montmartre', 'shares border with', {'concept': 'road'}], ['rue de Turbigo', 'shares border with', {'concept': 'road'}]]}
SELECT DISTINCT ?t WHERE { { { resource:rue_Montmartre property:shares_border_with ?t } UNION { resource:rue_de_Turbigo property:shares_border_with ?t } } . ?t rdf:type ontology:road }
[]
road
Q3450938 Q3335181 Q3449198 Q3452393 Q3452132 Q3368055 Q2174628 Q3451106 Q3450429 Q14629229
SYSTEM
Some of them are rue de Palestro, rue Volta, rue Mondétour, rue du Jour, rue du Bourg-l'Abbé, passage de l'Ancre, rue Saint-Denis, rue de Turbigo, rue au Maire, rue Beaubourg
Q3450436 Q3447576 Q3452418 Q3451106 Q3449238 Q3449239 Q3447045 Q3447516 Q2407205 Q3452610 Q3449930 Q3451454 Q3447964 Q3450173 Q3452132 Q3448479 Q1478999 Q3450018 Q3447198 Q3451818 Q3449024 Q3450938 Q3452427 Q3447254 Q3448988 Q3452296 Q3452393 Q3450429 Q3449329 Q3449324 Q3452727 Q3452627 Q3335181 Q3448951 Q3449906 Q3451880 Q3450677 Q3451846 Q14629229 Q2363605 Q2174628 Q3450484 Q3449425 Q3447908 Q3449813 Q3449198 Q3368055
OR((Q3449238,P47,c(Q34442)), (Q3451106,P47,c(Q34442)))
action filter_type
action union
action find
entity Q3449238
relation P47
action find
entity Q3451106
relation P47
type Q34442
[ANSWERS] share the border with rue Montmartre or rue de Turbigo
{'OR': [['Q3449238', 'P47', {'concept': 'Q34442'}], ['Q3451106', 'P47', {'concept': 'Q34442'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q3449238 property:P47 ?t } UNION { resource:Q3451106 property:P47 ?t } } . ?t rdf:type ontology:Q34442 }
rue d'Aboukir rue Cunin-Gridaine rue du Louvre rue de Turbigo rue Montmartre rue Montorgueil rue Bachaumont rue Conté rue d'Uzès rue du Temple rue Saint-Marc rue de la Jussienne rue Française rue Tiquetonne rue du Bourg-l'Abbé rue Jean-Jacques-Rousseau rue Saint-Martin rue Sainte-Élisabeth rue Borda rue des Fontaines-du-Temple rue Mandar rue de Palestro rue du Mail rue Brongniart rue Léopold-Bellan rue du Faubourg-Montmartre rue du Jour rue au Maire rue Notre-Dame-des-Victoires rue Notre-Dame-de-Nazareth rue Étienne-Marcel rue du Vertbois rue Volta rue Léon-Cladel rue Saint-Joseph rue des Jeûneurs rue de Cléry rue des Gravilliers rue Beaubourg rue du Croissant rue Saint-Denis rue d'Argout rue Paul-Lelong rue Feydeau rue Réaumur rue Mondétour passage de l'Ancre
Rue de Palestro, rue Volta, rue Mondétour, rue du Jour, rue du Bourg-l'Abbé, passage de l'Ancre, rue Saint-Denis, rue de Turbigo, rue au Maire and rue Beaubourg share the border with rue Montmartre or rue de Turbigo
rue de Palestro rue Volta rue Mondétour rue du Jour rue du Bourg-l'Abbé passage de l'Ancre rue Saint-Denis rue de Turbigo rue au Maire rue Beaubourg
action filter_type
action union
action find
entity rue Montmartre
relation shares border with
action find
entity rue de Turbigo
relation shares border with
type road
{'OR': [['rue Montmartre', 'shares border with', {'concept': 'road'}], ['rue de Turbigo', 'shares border with', {'concept': 'road'}]]}
SELECT DISTINCT ?t WHERE { { { resource:rue_Montmartre property:shares_border_with ?t } UNION { resource:rue_de_Turbigo property:shares_border_with ?t } } . ?t rdf:type ontology:road }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q34442
USER
How many roads do that road share a border with ?
(c(Q34442),P47,Q3451106)
[{'concept': 'Q34442'}, 'P47', 'Q3451106']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q3451106 . ?z rdf:type ontology:Q34442 }
[{'concept': 'road'}, 'shares border with', 'rue de Turbigo']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:rue_de_Turbigo . ?z rdf:type ontology:road }
[]
road
Quantitative|Count|Single entity type|Clarification
Q3452132
SYSTEM
Did you mean rue du Bourg-l'Abbé ?
(c(Q34442),P47,Q3450938) (c(Q34442),P47,Q3335181) (c(Q34442),P47,Q3449198) (c(Q34442),P47,Q3452393) (c(Q34442),P47,Q3452132) (c(Q34442),P47,Q3368055) (c(Q34442),P47,Q2174628) (c(Q34442),P47,Q3451106) (c(Q34442),P47,Q3450429) (c(Q34442),P47,Q14629229)
[ANSWER]
[{'concept': 'Q34442'}, 'P47', 'Q3450938'] [{'concept': 'Q34442'}, 'P47', 'Q3335181'] [{'concept': 'Q34442'}, 'P47', 'Q3449198'] [{'concept': 'Q34442'}, 'P47', 'Q3452393'] [{'concept': 'Q34442'}, 'P47', 'Q3452132'] [{'concept': 'Q34442'}, 'P47', 'Q3368055'] [{'concept': 'Q34442'}, 'P47', 'Q2174628'] [{'concept': 'Q34442'}, 'P47', 'Q3451106'] [{'concept': 'Q34442'}, 'P47', 'Q3450429'] [{'concept': 'Q34442'}, 'P47', 'Q14629229']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q3451106 . ?z rdf:type ontology:Q34442 }
Did you mean rue du Bourg-l'Abbé ?
rue du Bourg-l'Abbé
[{'concept': 'road'}, 'shares border with', 'rue de Palestro'] [{'concept': 'road'}, 'shares border with', 'rue Volta'] [{'concept': 'road'}, 'shares border with', 'rue Mondétour'] [{'concept': 'road'}, 'shares border with', 'rue du Jour'] [{'concept': 'road'}, 'shares border with', "rue du Bourg-l'Abbé"] [{'concept': 'road'}, 'shares border with', "passage de l'Ancre"] [{'concept': 'road'}, 'shares border with', 'rue Saint-Denis'] [{'concept': 'road'}, 'shares border with', 'rue de Turbigo'] [{'concept': 'road'}, 'shares border with', 'rue au Maire'] [{'concept': 'road'}, 'shares border with', 'rue Beaubourg']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:rue_de_Turbigo . ?z rdf:type ontology:road }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant rue de Turbigo. Could you tell me the answer for that?
(c(Q34442),P47,Q3451106)
Q3451106
[{'concept': 'Q34442'}, 'P47', 'Q3451106']
[{'concept': 'road'}, 'shares border with', 'rue de Turbigo']
[]
SYSTEM
24
Q3451818 Q3452727 Q3452132 Q2174628 Q3447516 Q3451846 Q3449813 Q3447576 Q3452627 Q3449239 Q3452610 Q1478999 Q3449324 Q3449238 Q3447964 Q3450173 Q3450429 Q14629229 Q3450018 Q3447198 Q3450938 Q3368055 Q3335181 Q3449198
(c(Q34442),P47,Q3451106)
[ANSWER]
[{'concept': 'Q34442'}, 'P47', 'Q3451106']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q3451106 . ?z rdf:type ontology:Q34442 }
rue des Fontaines-du-Temple rue Étienne-Marcel rue du Bourg-l'Abbé rue Saint-Denis rue Conté rue des Gravilliers rue Réaumur rue Cunin-Gridaine rue du Vertbois rue Montorgueil rue du Temple rue Saint-Martin rue Notre-Dame-de-Nazareth rue Montmartre rue Française rue Tiquetonne rue au Maire rue Beaubourg rue Sainte-Élisabeth rue Borda rue de Palestro passage de l'Ancre rue Volta rue Mondétour
24
[{'concept': 'road'}, 'shares border with', 'rue de Turbigo']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:rue_de_Turbigo . ?z rdf:type ontology:road }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P669
Q34442 Q18783400
USER
Which genres of sculpture have their location as exactly 1 road ?
(c(Q18783400),P669,c(Q34442))
action equal
action find_tuple_counts
relation P669
type Q18783400
type Q34442
value 1
[{'concept': 'Q18783400'}, 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?h = 1 ) . { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?h ) WHERE { ?j property:P669 ?r . ?j rdf:type ontology:Q18783400 . ?r rdf:type ontology:Q34442 } GROUP BY ?j } }
action equal
action find_tuple_counts
relation located on street
type genre of sculpture
type road
value 1
[{'concept': 'genre of sculpture'}, 'located on street', {'concept': 'road'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?h = 1 ) . { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?h ) WHERE { ?j property:located_on_street ?r . ?j rdf:type ontology:genre_of_sculpture . ?r rdf:type ontology:road } GROUP BY ?j } }
[]
road genre of sculpture
Q27105728 Q17255225 Q20987041
SYSTEM
Tras Julia, Statue of Laurens Jansz Coster, Statue of Josef Mánes by Bohumil Kafka
Q27105728 Q17255225 Q20987041
(c(Q18783400),P669,c(Q34442))
action equal
action find_tuple_counts
relation P669
type Q18783400
type Q34442
value 1
[ANSWERS] have their location as exactly 1 road
[{'concept': 'Q18783400'}, 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?h = 1 ) . { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?h ) WHERE { ?j property:P669 ?r . ?j rdf:type ontology:Q18783400 . ?r rdf:type ontology:Q34442 } GROUP BY ?j } }
Tras Julia Statue of Laurens Jansz Coster Statue of Josef Mánes by Bohumil Kafka
Tras Julia, Statue of Laurens Jansz Coster and Statue of Josef Mánes by Bohumil Kafka have their location as exactly 1 road
Tras Julia Statue of Laurens Jansz Coster Statue of Josef Mánes by Bohumil Kafka
action equal
action find_tuple_counts
relation located on street
type genre of sculpture
type road
value 1
[{'concept': 'genre of sculpture'}, 'located on street', {'concept': 'road'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?h = 1 ) . { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?h ) WHERE { ?j property:located_on_street ?r . ?j rdf:type ontology:genre_of_sculpture . ?r rdf:type ontology:road } GROUP BY ?j } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q27105728 Q17255225 Q20987041
P669
Q34442
USER
Which roads are those genres of sculpture located on ?
(Q27105728,P669,c(Q34442)) (Q17255225,P669,c(Q34442)) (Q20987041,P669,c(Q34442))
action filter_type
action find
entity prev_answer
relation P669
type Q34442
['Q27105728', 'P669', {'concept': 'Q34442'}] ['Q17255225', 'P669', {'concept': 'Q34442'}] ['Q20987041', 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ?g WHERE { ?t property:P669 ?g . ?g rdf:type ontology:Q34442 . VALUES ( ?t ) { ( resource:Q27105728 ) ( resource:Q17255225 ) ( resource:Q20987041 ) } }
Tras Julia Statue of Laurens Jansz Coster Statue of Josef Mánes by Bohumil Kafka
action filter_type
action find
entity prev_answer
relation located on street
type road
['Tras Julia', 'located on street', {'concept': 'road'}] ['Statue of Laurens Jansz Coster', 'located on street', {'concept': 'road'}] ['Statue of Josef Mánes by Bohumil Kafka', 'located on street', {'concept': 'road'}]
SELECT DISTINCT ?g WHERE { ?t property:located_on_street ?g . ?g rdf:type ontology:road . VALUES ( ?t ) { ( resource:Tras_Julia ) ( resource:Statue_of_Laurens_Jansz_Coster ) ( resource:Statue_of_Josef_Mánes_by_Bohumil_Kafka ) } }
[]
road
Q5741017 Q1083850 Q20987033
SYSTEM
calle del Pez, Grote Markt, Alšovo nábřeží
Q5741017 Q1083850 Q20987033
(Q27105728,P669,c(Q34442)) (Q17255225,P669,c(Q34442)) (Q20987041,P669,c(Q34442))
action filter_type
action find
entity prev_answer
relation P669
type Q34442
Those genres of sculpture are located in [ANSWERS]
['Q27105728', 'P669', {'concept': 'Q34442'}] ['Q17255225', 'P669', {'concept': 'Q34442'}] ['Q20987041', 'P669', {'concept': 'Q34442'}]
SELECT DISTINCT ?g WHERE { ?t property:P669 ?g . ?g rdf:type ontology:Q34442 . VALUES ( ?t ) { ( resource:Q27105728 ) ( resource:Q17255225 ) ( resource:Q20987041 ) } }
calle del Pez Grote Markt Alšovo nábřeží
Those genres of sculpture are located in calle del Pez, Grote Markt and Alšovo nábřeží
calle del Pez Grote Markt Alšovo nábřeží
action filter_type
action find
entity prev_answer
relation located on street
type road
['Tras Julia', 'located on street', {'concept': 'road'}] ['Statue of Laurens Jansz Coster', 'located on street', {'concept': 'road'}] ['Statue of Josef Mánes by Bohumil Kafka', 'located on street', {'concept': 'road'}]
SELECT DISTINCT ?g WHERE { ?t property:located_on_street ?g . ?g rdf:type ontology:road . VALUES ( ?t ) { ( resource:Tras_Julia ) ( resource:Statue_of_Laurens_Jansz_Coster ) ( resource:Statue_of_Josef_Mánes_by_Bohumil_Kafka ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q5741017 Q1083850 Q20987033
P17
Q15617994
USER
Which administrative territories do calle del Pez, Grote Markt and Alšovo nábřeží belong to ?
(Q5741017,P17,c(Q15617994)) (Q1083850,P17,c(Q15617994)) (Q20987033,P17,c(Q15617994))
action union
action filter_type
action find
entity Q5741017
relation P17
type Q15617994
action filter_type
action find
entity Q1083850
relation P17
type Q15617994
action filter_type
action find
entity Q20987033
relation P17
type Q15617994
['Q5741017', 'P17', {'concept': 'Q15617994'}] ['Q1083850', 'P17', {'concept': 'Q15617994'}] ['Q20987033', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { resource:Q5741017 property:P17 ?e . ?e rdf:type ontology:Q15617994 } UNION { ?e rdf:type ontology:Q15617994 . resource:Q1083850 property:P17 ?e } }
calle del Pez Grote Markt Alšovo nábřeží
action union
action filter_type
action find
entity calle del Pez
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Grote Markt
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Alšovo nábřeží
relation country
type designation for an administrative territorial entity
['calle del Pez', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Grote Markt', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Alšovo nábřeží', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { resource:calle_del_Pez property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Grote_Markt property:country ?e } }
[]
designation for an administrative territorial entity
Q29 Q55 Q213
SYSTEM
Spain, Netherlands, Czech Republic
Q29 Q55 Q213
(Q5741017,P17,c(Q15617994)) (Q1083850,P17,c(Q15617994)) (Q20987033,P17,c(Q15617994))
action union
action filter_type
action find
entity Q5741017
relation P17
type Q15617994
action filter_type
action find
entity Q1083850
relation P17
type Q15617994
action filter_type
action find
entity Q20987033
relation P17
type Q15617994
[ANSWERS] do calle del Pez, Grote Markt and Alšovo nábřeží belong to
['Q5741017', 'P17', {'concept': 'Q15617994'}] ['Q1083850', 'P17', {'concept': 'Q15617994'}] ['Q20987033', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { resource:Q5741017 property:P17 ?e . ?e rdf:type ontology:Q15617994 } UNION { ?e rdf:type ontology:Q15617994 . resource:Q1083850 property:P17 ?e } }
Spain Netherlands Czech Republic
Spain, Netherlands and Czech Republic do calle del Pez, Grote Markt and Alšovo nábřeží belong to
Spain Netherlands Czech Republic
action union
action filter_type
action find
entity calle del Pez
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Grote Markt
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Alšovo nábřeží
relation country
type designation for an administrative territorial entity
['calle del Pez', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Grote Markt', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Alšovo nábřeží', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { resource:calle_del_Pez property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Grote_Markt property:country ?e } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q29 Q55 Q213
P6
Q502895
USER
What people are Spain, Netherlands and Czech Republic the head of goverment of ?
(Q29,P6,c(Q502895)) (Q55,P6,c(Q502895)) (Q213,P6,c(Q502895))
action union
action filter_type
action find
entity Q29
relation P6
type Q502895
action filter_type
action find
entity Q55
relation P6
type Q502895
action filter_type
action find
entity Q213
relation P6
type Q502895
['Q29', 'P6', {'concept': 'Q502895'}] ['Q55', 'P6', {'concept': 'Q502895'}] ['Q213', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { { resource:Q55 property:P6 ?l . ?l rdf:type ontology:Q502895 } UNION { resource:Q29 property:P6 ?l . ?l rdf:type ontology:Q502895 } }
Spain Netherlands Czech Republic
action union
action filter_type
action find
entity Spain
relation head of government
type common name
action filter_type
action find
entity Netherlands
relation head of government
type common name
action filter_type
action find
entity Czech Republic
relation head of government
type common name
['Spain', 'head of government', {'concept': 'common name'}] ['Netherlands', 'head of government', {'concept': 'common name'}] ['Czech Republic', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { { resource:Netherlands property:head_of_government ?l . ?l rdf:type ontology:common_name } UNION { resource:Spain property:head_of_government ?l . ?l rdf:type ontology:common_name } }
[]
common name
Q159840 Q29032 Q57434
SYSTEM
Ruud Lubbers, Miloš Zeman, Václav Klaus
Q10819 Q41395 Q693053 Q686476 Q159840 Q133386 Q57792 Q345481 Q471204 Q983186 Q380970 Q951705 Q781813 Q736026 Q221411 Q634025 Q719701 Q735519 Q318320 Q318334 Q12769 Q35786 Q32777 Q161671 Q29032 Q12025475 Q155880 Q57434 Q548786 Q890971 Q193675 Q348896
(Q29,P6,c(Q502895)) (Q55,P6,c(Q502895)) (Q213,P6,c(Q502895))
action union
action filter_type
action find
entity Q29
relation P6
type Q502895
action filter_type
action find
entity Q55
relation P6
type Q502895
action filter_type
action find
entity Q213
relation P6
type Q502895
[ANSWERS] are Spain, Netherlands and Czech Republic the head of goverment of
['Q29', 'P6', {'concept': 'Q502895'}] ['Q55', 'P6', {'concept': 'Q502895'}] ['Q213', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { { resource:Q55 property:P6 ?l . ?l rdf:type ontology:Q502895 } UNION { resource:Q29 property:P6 ?l . ?l rdf:type ontology:Q502895 } }
Mariano Rajoy José Luis Rodríguez Zapatero Dirk Jan de Geer Hendrikus Colijn Ruud Lubbers Jan Peter Balkenende Mark Rutte Piet de Jong Barend Biesheuvel Charles Ruijs de Beerenbrouck Jelle Zijlstra Pieter Sjoerds Gerbrandy Jan de Quay Jo Cals Wim Kok Wim Schermerhorn Victor Marijnen Louis Beel Joop den Uyl Dries van Agt Willem Drees Petr Nečas Vladimír Špidla Jiří Paroubek Miloš Zeman Jiří Rusnok Mirek Topolánek Václav Klaus Josef Tošovský Bohuslav Sobotka Jan Fischer Stanislav Gross
Ruud Lubbers, Miloš Zeman and Václav Klaus are Spain, Netherlands and Czech Republic the head of goverment of
Ruud Lubbers Miloš Zeman Václav Klaus
action union
action filter_type
action find
entity Spain
relation head of government
type common name
action filter_type
action find
entity Netherlands
relation head of government
type common name
action filter_type
action find
entity Czech Republic
relation head of government
type common name
['Spain', 'head of government', {'concept': 'common name'}] ['Netherlands', 'head of government', {'concept': 'common name'}] ['Czech Republic', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { { resource:Netherlands property:head_of_government ?l . ?l rdf:type ontology:common_name } UNION { resource:Spain property:head_of_government ?l . ?l rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3449238
P138
Q15617994
USER
Which administrative territory is rue Montmartre named after ?
(Q3449238,P138,c(Q15617994))
action filter_type
action find
entity Q3449238
relation P138
type Q15617994
['Q3449238', 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q3449238 property:P138 ?z . ?z rdf:type ontology:Q15617994 }
rue Montmartre
action filter_type
action find
entity rue Montmartre
relation named after
type designation for an administrative territorial entity
['rue Montmartre', 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:rue_Montmartre property:named_after ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q186115
SYSTEM
Montmartre
Q186115
(Q3449238,P138,c(Q15617994))
action filter_type
action find
entity Q3449238
relation P138
type Q15617994
Rue [ANSWER] is named for [ANSWER]
['Q3449238', 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q3449238 property:P138 ?z . ?z rdf:type ontology:Q15617994 }
Montmartre
Rue Montmartre is named for Montmartre
Montmartre
action filter_type
action find
entity rue Montmartre
relation named after
type designation for an administrative territorial entity
['rue Montmartre', 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:rue_Montmartre property:named_after ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]