Simple Question (Direct)
Simple Question
Q1819863
P102
Q7210356
USER
Which political organization is Leopold Waess a member of ?
(Q1819863,P102,c(Q7210356))
action filter_type
action find
entity Q1819863
relation P102
type Q7210356
['Q1819863', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?b WHERE { resource:Q1819863 property:P102 ?b . ?b rdf:type ontology:Q7210356 }
Leopold Waess
action filter_type
action find
entity Leopold Waess
relation member of political party
type political organization
['Leopold Waess', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?b WHERE { resource:Leopold_Waess property:member_of_political_party ?b . ?b rdf:type ontology:political_organization }
[]
political organization
Q13124
SYSTEM
Free Democratic Party
Q13124
(Q1819863,P102,c(Q7210356))
action filter_type
action find
entity Q1819863
relation P102
type Q7210356
Party [ANSWER] is Leopold Waess a member of
['Q1819863', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?b WHERE { resource:Q1819863 property:P102 ?b . ?b rdf:type ontology:Q7210356 }
Free Democratic Party
Party Free Democratic Party is Leopold Waess a member of
Free Democratic Party
action filter_type
action find
entity Leopold Waess
relation member of political party
type political organization
['Leopold Waess', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?b WHERE { resource:Leopold_Waess property:member_of_political_party ?b . ?b rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1819863
P937
Q515
USER
Which city is the work location of Leopold Waess ?
(Q1819863,P937,c(Q515))
action filter_type
action find
entity Q1819863
relation P937
type Q515
['Q1819863', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q515 . resource:Q1819863 property:P937 ?j }
Leopold Waess
action filter_type
action find
entity Leopold Waess
relation work location
type city
['Leopold Waess', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:city . resource:Leopold_Waess property:work_location ?j }
[]
city
Q1721
SYSTEM
Wiesbaden
Q1721
(Q1819863,P937,c(Q515))
action filter_type
action find
entity Q1819863
relation P937
type Q515
[ANSWER] is the work location of Leopold Waess
['Q1819863', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q515 . resource:Q1819863 property:P937 ?j }
Wiesbaden
Wiesbaden is the work location of Leopold Waess
Wiesbaden
action filter_type
action find
entity Leopold Waess
relation work location
type city
['Leopold Waess', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:city . resource:Leopold_Waess property:work_location ?j }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1721
P47
Q1048835
USER
Which political territories are bordered by that city ?
(c(Q1048835),P47,Q1721)
action filter_type
action find
entity Q1721
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q1721']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1048835 . resource:Q1721 property:P47 ?m }
Wiesbaden
action filter_type
action find
entity Wiesbaden
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Wiesbaden']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_territorial_entity . resource:Wiesbaden property:shares_border_with ?m }
[]
political territorial entity
Q7914 Q8569 Q7907
SYSTEM
Groß-Gerau, Mainz-Bingen, Rheingau-Taunus-Kreis
Q7909 Q8569 Q7914 Q7907
(c(Q1048835),P47,Q1721)
action filter_type
action find
entity Q1721
relation P47
type Q1048835
[ANSWERS] are bordered by that city
[{'concept': 'Q1048835'}, 'P47', 'Q1721']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1048835 . resource:Q1721 property:P47 ?m }
Main-Taunus-Kreis Mainz-Bingen Groß-Gerau Rheingau-Taunus-Kreis
Groß-Gerau, Mainz-Bingen and Rheingau-Taunus-Kreis are bordered by that city
Groß-Gerau Mainz-Bingen Rheingau-Taunus-Kreis
action filter_type
action find
entity Wiesbaden
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Wiesbaden']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_territorial_entity . resource:Wiesbaden property:shares_border_with ?m }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1753070 Q1721
P47
Q1048835
USER
Or Castell de Castells?
OR((c(Q1048835),P47,Q1721), (c(Q1048835),P47,Q1753070))
action filter_type
action union
action find_reverse
entity Q1721
relation P47
action find_reverse
entity Q1753070
relation P47
type Q1048835
{'OR': [[{'concept': 'Q1048835'}, 'P47', 'Q1721'], [{'concept': 'Q1048835'}, 'P47', 'Q1753070']]}
SELECT DISTINCT ?n WHERE { { VALUES ( ?t ) { ( resource:Q1721 ) ( resource:Q1753070 ) } . ?n property:P47 ?t } . ?n rdf:type ontology:Q1048835 }
Castell de Castells Wiesbaden
action filter_type
action union
action find_reverse
entity Wiesbaden
relation shares border with
action find_reverse
entity Castell de Castells
relation shares border with
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'shares border with', 'Wiesbaden'], [{'concept': 'political territorial entity'}, 'shares border with', 'Castell de Castells']]}
SELECT DISTINCT ?n WHERE { { VALUES ( ?t ) { ( resource:Wiesbaden ) ( resource:Castell_de_Castells ) } . ?n property:shares_border_with ?t } . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q7907 Q1752443 Q1751994 Q1770182 Q891663 Q7909 Q1750925 Q1763714 Q1983231 Q984526
SYSTEM
Some of them are Rheingau-Taunus-Kreis, Benimantell, Famorca, Beniardà, Bolulla, Main-Taunus-Kreis, Tollos, Benigembla, La Vall de Laguar, El Castell de Guadalest
Q8569 Q1752443 Q984526 Q1751994 Q1750925 Q7909 Q1766232 Q7907 Q1763714 Q891663 Q1983231 Q7914 Q1983371 Q1770182
OR((c(Q1048835),P47,Q1721), (c(Q1048835),P47,Q1753070))
action filter_type
action union
action find_reverse
entity Q1721
relation P47
action find_reverse
entity Q1753070
relation P47
type Q1048835
[ANSWERS]
{'OR': [[{'concept': 'Q1048835'}, 'P47', 'Q1721'], [{'concept': 'Q1048835'}, 'P47', 'Q1753070']]}
SELECT DISTINCT ?n WHERE { { VALUES ( ?t ) { ( resource:Q1721 ) ( resource:Q1753070 ) } . ?n property:P47 ?t } . ?n rdf:type ontology:Q1048835 }
Mainz-Bingen Benimantell El Castell de Guadalest Famorca Tollos Main-Taunus-Kreis Tàrbena Rheingau-Taunus-Kreis Benigembla Bolulla La Vall de Laguar Groß-Gerau La Vall d'Ebo Beniardà
Rheingau-Taunus-Kreis Benimantell Famorca Beniardà Bolulla Main-Taunus-Kreis Tollos Benigembla La Vall de Laguar El Castell de Guadalest
action filter_type
action union
action find_reverse
entity Wiesbaden
relation shares border with
action find_reverse
entity Castell de Castells
relation shares border with
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'shares border with', 'Wiesbaden'], [{'concept': 'political territorial entity'}, 'shares border with', 'Castell de Castells']]}
SELECT DISTINCT ?n WHERE { { VALUES ( ?t ) { ( resource:Wiesbaden ) ( resource:Castell_de_Castells ) } . ?n property:shares_border_with ?t } . ?n rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q7907 Q1752443 Q1751994 Q1770182 Q891663 Q7909 Q1750925 Q1763714 Q1983231 Q984526
P47
Q1048835
USER
Which political territories share border with Rheingau-Taunus-Kreis, Benimantell, Famorca, Beniardà, Bolulla, Main-Taunus-Kreis, Tollos, Benigembla, La Vall de Laguar and El Castell de Guadalest ?
(c(Q1048835),P47,Q7907) (c(Q1048835),P47,Q1752443) (c(Q1048835),P47,Q1751994) (c(Q1048835),P47,Q1770182) (c(Q1048835),P47,Q891663) (c(Q1048835),P47,Q7909) (c(Q1048835),P47,Q1750925) (c(Q1048835),P47,Q1763714) (c(Q1048835),P47,Q1983231) (c(Q1048835),P47,Q984526)
action union
action filter_type
action find
entity Q7907
relation P47
type Q1048835
action filter_type
action find
entity Q1752443
relation P47
type Q1048835
action filter_type
action find
entity Q1751994
relation P47
type Q1048835
action filter_type
action find
entity Q1770182
relation P47
type Q1048835
action filter_type
action find
entity Q891663
relation P47
type Q1048835
action filter_type
action find
entity Q7909
relation P47
type Q1048835
action filter_type
action find
entity Q1750925
relation P47
type Q1048835
action filter_type
action find
entity Q1763714
relation P47
type Q1048835
action filter_type
action find
entity Q1983231
relation P47
type Q1048835
action filter_type
action find
entity Q984526
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q7907'] [{'concept': 'Q1048835'}, 'P47', 'Q1752443'] [{'concept': 'Q1048835'}, 'P47', 'Q1751994'] [{'concept': 'Q1048835'}, 'P47', 'Q1770182'] [{'concept': 'Q1048835'}, 'P47', 'Q891663'] [{'concept': 'Q1048835'}, 'P47', 'Q7909'] [{'concept': 'Q1048835'}, 'P47', 'Q1750925'] [{'concept': 'Q1048835'}, 'P47', 'Q1763714'] [{'concept': 'Q1048835'}, 'P47', 'Q1983231'] [{'concept': 'Q1048835'}, 'P47', 'Q984526']
SELECT DISTINCT ?g WHERE { { resource:Q7907 property:P47 ?g . ?g rdf:type ontology:Q1048835 } UNION { resource:Q1752443 property:P47 ?g . ?g rdf:type ontology:Q1048835 } }
Rheingau-Taunus-Kreis Benimantell Famorca Beniardà Bolulla Main-Taunus-Kreis Tollos Benigembla La Vall de Laguar El Castell de Guadalest
action union
action filter_type
action find
entity Rheingau-Taunus-Kreis
relation shares border with
type political territorial entity
action filter_type
action find
entity Benimantell
relation shares border with
type political territorial entity
action filter_type
action find
entity Famorca
relation shares border with
type political territorial entity
action filter_type
action find
entity Beniardà
relation shares border with
type political territorial entity
action filter_type
action find
entity Bolulla
relation shares border with
type political territorial entity
action filter_type
action find
entity Main-Taunus-Kreis
relation shares border with
type political territorial entity
action filter_type
action find
entity Tollos
relation shares border with
type political territorial entity
action filter_type
action find
entity Benigembla
relation shares border with
type political territorial entity
action filter_type
action find
entity La Vall de Laguar
relation shares border with
type political territorial entity
action filter_type
action find
entity El Castell de Guadalest
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Rheingau-Taunus-Kreis'] [{'concept': 'political territorial entity'}, 'shares border with', 'Benimantell'] [{'concept': 'political territorial entity'}, 'shares border with', 'Famorca'] [{'concept': 'political territorial entity'}, 'shares border with', 'Beniardà'] [{'concept': 'political territorial entity'}, 'shares border with', 'Bolulla'] [{'concept': 'political territorial entity'}, 'shares border with', 'Main-Taunus-Kreis'] [{'concept': 'political territorial entity'}, 'shares border with', 'Tollos'] [{'concept': 'political territorial entity'}, 'shares border with', 'Benigembla'] [{'concept': 'political territorial entity'}, 'shares border with', 'La Vall de Laguar'] [{'concept': 'political territorial entity'}, 'shares border with', 'El Castell de Guadalest']
SELECT DISTINCT ?g WHERE { { resource:Rheingau-Taunus-Kreis property:shares_border_with ?g . ?g rdf:type ontology:political_territorial_entity } UNION { resource:Benimantell property:shares_border_with ?g . ?g rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
Q1753070 Q1753070 Q1646122
SYSTEM
Castell de Castells for 1st, 2nd, Castalla for 3rd
Q7908 Q7909 Q7906 Q8569 Q8601 Q1753070 Q1646107 Q370955 Q1770182 Q985137 Q984526 Q1768847 Q426123 Q1768778 Q1750925 Q1753070 Q1646122 Q1770182 Q1768778 Q1753070 Q1646122 Q1752443 Q370955 Q1751994 Q1753070 Q1766232 Q1770160 Q984526 Q7914 Q7908 Q7907 Q426123 Q1753070 Q1770191 Q1751994 Q1770167 Q1983371 Q1753070 Q1766232 Q984818 Q1985301 Q1983231 Q1753070 Q983550 Q1766232 Q1985301 Q1763714 Q1983371 Q891663 Q1753070 Q1752443 Q1770160 Q1768847
(c(Q1048835),P47,Q7907) (c(Q1048835),P47,Q1752443) (c(Q1048835),P47,Q1751994) (c(Q1048835),P47,Q1770182) (c(Q1048835),P47,Q891663) (c(Q1048835),P47,Q7909) (c(Q1048835),P47,Q1750925) (c(Q1048835),P47,Q1763714) (c(Q1048835),P47,Q1983231) (c(Q1048835),P47,Q984526)
action union
action filter_type
action find
entity Q7907
relation P47
type Q1048835
action filter_type
action find
entity Q1752443
relation P47
type Q1048835
action filter_type
action find
entity Q1751994
relation P47
type Q1048835
action filter_type
action find
entity Q1770182
relation P47
type Q1048835
action filter_type
action find
entity Q891663
relation P47
type Q1048835
action filter_type
action find
entity Q7909
relation P47
type Q1048835
action filter_type
action find
entity Q1750925
relation P47
type Q1048835
action filter_type
action find
entity Q1763714
relation P47
type Q1048835
action filter_type
action find
entity Q1983231
relation P47
type Q1048835
action filter_type
action find
entity Q984526
relation P47
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P47', 'Q7907'] [{'concept': 'Q1048835'}, 'P47', 'Q1752443'] [{'concept': 'Q1048835'}, 'P47', 'Q1751994'] [{'concept': 'Q1048835'}, 'P47', 'Q1770182'] [{'concept': 'Q1048835'}, 'P47', 'Q891663'] [{'concept': 'Q1048835'}, 'P47', 'Q7909'] [{'concept': 'Q1048835'}, 'P47', 'Q1750925'] [{'concept': 'Q1048835'}, 'P47', 'Q1763714'] [{'concept': 'Q1048835'}, 'P47', 'Q1983231'] [{'concept': 'Q1048835'}, 'P47', 'Q984526']
SELECT DISTINCT ?g WHERE { { resource:Q7907 property:P47 ?g . ?g rdf:type ontology:Q1048835 } UNION { resource:Q1752443 property:P47 ?g . ?g rdf:type ontology:Q1048835 } }
Hochtaunuskreis Main-Taunus-Kreis Limburg-Weilburg Mainz-Bingen Rhein-Lahn-Kreis Castell de Castells Finestrat Benifato Beniardà Sella El Castell de Guadalest Polop Fageca Confrides Tollos Castell de Castells Castalla Beniardà Confrides Castell de Castells Castalla Benimantell Benifato Famorca Castell de Castells Tàrbena Callosa d'en Sarrià El Castell de Guadalest Groß-Gerau Hochtaunuskreis Rheingau-Taunus-Kreis Fageca Castell de Castells Benimassot Famorca La Vall d'Alcalà La Vall d'Ebo Castell de Castells Tàrbena Parcent Murla La Vall de Laguar Castell de Castells Orba Tàrbena Murla Benigembla La Vall d'Ebo Bolulla Castell de Castells Benimantell Callosa d'en Sarrià Polop
Castell de Castells, Castell de Castells and Castalla share border with Rheingau-Taunus-Kreis, Benimantell, Famorca, Beniardà, Bolulla, Main-Taunus-Kreis, Tollos, Benigembla, La Vall de Laguar and El Castell de Guadalest
Castell de Castells Castell de Castells Castalla
action union
action filter_type
action find
entity Rheingau-Taunus-Kreis
relation shares border with
type political territorial entity
action filter_type
action find
entity Benimantell
relation shares border with
type political territorial entity
action filter_type
action find
entity Famorca
relation shares border with
type political territorial entity
action filter_type
action find
entity Beniardà
relation shares border with
type political territorial entity
action filter_type
action find
entity Bolulla
relation shares border with
type political territorial entity
action filter_type
action find
entity Main-Taunus-Kreis
relation shares border with
type political territorial entity
action filter_type
action find
entity Tollos
relation shares border with
type political territorial entity
action filter_type
action find
entity Benigembla
relation shares border with
type political territorial entity
action filter_type
action find
entity La Vall de Laguar
relation shares border with
type political territorial entity
action filter_type
action find
entity El Castell de Guadalest
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Rheingau-Taunus-Kreis'] [{'concept': 'political territorial entity'}, 'shares border with', 'Benimantell'] [{'concept': 'political territorial entity'}, 'shares border with', 'Famorca'] [{'concept': 'political territorial entity'}, 'shares border with', 'Beniardà'] [{'concept': 'political territorial entity'}, 'shares border with', 'Bolulla'] [{'concept': 'political territorial entity'}, 'shares border with', 'Main-Taunus-Kreis'] [{'concept': 'political territorial entity'}, 'shares border with', 'Tollos'] [{'concept': 'political territorial entity'}, 'shares border with', 'Benigembla'] [{'concept': 'political territorial entity'}, 'shares border with', 'La Vall de Laguar'] [{'concept': 'political territorial entity'}, 'shares border with', 'El Castell de Guadalest']
SELECT DISTINCT ?g WHERE { { resource:Rheingau-Taunus-Kreis property:shares_border_with ?g . ?g rdf:type ontology:political_territorial_entity } UNION { resource:Benimantell property:shares_border_with ?g . ?g rdf:type ontology:political_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1646122
P6
Q502895
USER
Which person is that political territory the head of goverment of ?
(Q1646122,P6,c(Q502895))
action filter_type
action find
entity Q1646122
relation P6
type Q502895
['Q1646122', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q1646122 property:P6 ?n . ?n rdf:type ontology:Q502895 }
Castalla
action filter_type
action find
entity Castalla
relation head of government
type common name
['Castalla', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Castalla property:head_of_government ?n . ?n rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1753070
SYSTEM
Did you mean Castell de Castells ?
Q1753070 Q1753070 Q1646122
(Q1753070,P6,c(Q502895)) (Q1753070,P6,c(Q502895)) (Q1646122,P6,c(Q502895))
[ANSWER]
['Q1753070', 'P6', {'concept': 'Q502895'}] ['Q1753070', 'P6', {'concept': 'Q502895'}] ['Q1646122', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q1646122 property:P6 ?n . ?n rdf:type ontology:Q502895 }
Castell de Castells Castell de Castells Castalla
Did you mean Castell de Castells ?
Castell de Castells
['Castell de Castells', 'head of government', {'concept': 'common name'}] ['Castell de Castells', 'head of government', {'concept': 'common name'}] ['Castalla', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Castalla property:head_of_government ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Castalla. Could you tell me the answer for that?
(Q1646122,P6,c(Q502895))
Q1646122
['Q1646122', 'P6', {'concept': 'Q502895'}]
['Castalla', 'head of government', {'concept': 'common name'}]
[]
Q14020415
SYSTEM
Juan Antonio Candela Rico
Q14020415
(Q1646122,P6,c(Q502895))
action filter_type
action find
entity Q1646122
relation P6
type Q502895
[ANSWER] is that political territory the head of goverment of
['Q1646122', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q1646122 property:P6 ?n . ?n rdf:type ontology:Q502895 }
Juan Antonio Candela Rico
Juan Antonio Candela Rico is that political territory the head of goverment of
Juan Antonio Candela Rico
action filter_type
action find
entity Castalla
relation head of government
type common name
['Castalla', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Castalla property:head_of_government ?n . ?n rdf:type ontology:common_name }
[]