Simple Question (Direct)
Simple Question
Q1222276
P39
Q12737077
USER
Which occupation was a position held by Dieter Kleinmann ?
(Q1222276,P39,c(Q12737077))
action filter_type
action find
entity Q1222276
relation P39
type Q12737077
['Q1222276', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q1222276 property:P39 ?l . ?l rdf:type ontology:Q12737077 }
Dieter Kleinmann
action filter_type
action find
entity Dieter Kleinmann
relation position held
type occupation
['Dieter Kleinmann', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Dieter_Kleinmann property:position_held ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q17481175
SYSTEM
Member of the Landtag of Baden-Württemberg
Q17481175
(Q1222276,P39,c(Q12737077))
action filter_type
action find
entity Q1222276
relation P39
type Q12737077
[ANSWER] was a position held by Dieter Kleinmann
['Q1222276', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q1222276 property:P39 ?l . ?l rdf:type ontology:Q12737077 }
Member of the Landtag of Baden-Württemberg
Member of the Landtag of Baden-Württemberg was a position held by Dieter Kleinmann
Member of the Landtag of Baden-Württemberg
action filter_type
action find
entity Dieter Kleinmann
relation position held
type occupation
['Dieter Kleinmann', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Dieter_Kleinmann property:position_held ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1222276
P937
Q56061
USER
Where did Dieter Kleinmann work ?
(Q1222276,P937,c(Q56061))
action filter_type
action find
entity Q1222276
relation P937
type Q56061
['Q1222276', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q1222276 property:P937 ?x . ?x rdf:type ontology:Q56061 }
Dieter Kleinmann
action filter_type
action find
entity Dieter Kleinmann
relation work location
type administrative territorial entity
['Dieter Kleinmann', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Dieter_Kleinmann property:work_location ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q82960 Q1022
SYSTEM
Rottweil, Stuttgart
Q82960 Q1022
(Q1222276,P937,c(Q56061))
action filter_type
action find
entity Q1222276
relation P937
type Q56061
Dieter Kleinmann worked in [ANSWERS]
['Q1222276', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q1222276 property:P937 ?x . ?x rdf:type ontology:Q56061 }
Rottweil Stuttgart
Dieter Kleinmann worked in Rottweil and Stuttgart
Rottweil Stuttgart
action filter_type
action find
entity Dieter Kleinmann
relation work location
type administrative territorial entity
['Dieter Kleinmann', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Dieter_Kleinmann property:work_location ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q26236296
P937
Q502895
USER
Does Imitiaz Qureshi work at those administrative territories ?
(Q26236296,P937,Q82960) (Q26236296,P937,Q1022)
action is_in
entity prev_answer
action find
entity Q26236296
relation P937
['Q26236296', 'P937', 'Q82960'] ['Q26236296', 'P937', 'Q1022']
ASK WHERE { resource:Q26236296 property:P937 ?p . VALUES ( ?p ) { ( resource:Q82960 ) ( resource:Q1022 ) } }
Imitiaz Qureshi
action is_in
entity prev_answer
action find
entity Imitiaz Qureshi
relation work location
['Imitiaz Qureshi', 'work location', 'Rottweil'] ['Imitiaz Qureshi', 'work location', 'Stuttgart']
ASK WHERE { resource:Imitiaz_Qureshi property:work_location ?p . VALUES ( ?p ) { ( resource:Rottweil ) ( resource:Stuttgart ) } }
[]
common name
SYSTEM
NO
(Q26236296,P937,Q82960) (Q26236296,P937,Q1022)
action is_in
entity prev_answer
action find
entity Q26236296
relation P937
[ANSWER]
['Q26236296', 'P937', 'Q82960'] ['Q26236296', 'P937', 'Q1022']
ASK WHERE { resource:Q26236296 property:P937 ?p . VALUES ( ?p ) { ( resource:Q82960 ) ( resource:Q1022 ) } }
No
action is_in
entity prev_answer
action find
entity Imitiaz Qureshi
relation work location
['Imitiaz Qureshi', 'work location', 'Rottweil'] ['Imitiaz Qureshi', 'work location', 'Stuttgart']
ASK WHERE { resource:Imitiaz_Qureshi property:work_location ?p . VALUES ( ?p ) { ( resource:Rottweil ) ( resource:Stuttgart ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1636221 Q17481175
P47 P17
Q1048835
USER
Which political territories are Member of the Landtag of Baden-Württemberg situated in or share border with Murillo de Río Leza ?
OR((Q17481175,P17,c(Q1048835)), (Q1636221,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q17481175
relation P17
action find
entity Q1636221
relation P47
type Q1048835
{'OR': [['Q17481175', 'P17', {'concept': 'Q1048835'}], ['Q1636221', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1048835 . { { resource:Q17481175 property:P17 ?x } UNION { resource:Q1636221 property:P47 ?x } } }
Murillo de Río Leza Member of the Landtag of Baden-Württemberg
action filter_type
action union
action find
entity Member of the Landtag of Baden-Württemberg
relation country
action find
entity Murillo de Río Leza
relation shares border with
type political territorial entity
{'OR': [['Member of the Landtag of Baden-Württemberg', 'country', {'concept': 'political territorial entity'}], ['Murillo de Río Leza', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_territorial_entity . { { resource:Member_of_the_Landtag_of_Baden-Württemberg property:country ?x } UNION { resource:Murillo_de_Río_Leza property:shares_border_with ?x } } }
[]
political territorial entity
Q1615978 Q1606588 Q1769826 Q1637656 Q183 Q1646973 Q1647643 Q1606725 Q1769934
SYSTEM
Alberite, Villamediana de Iregua, Galilea, La Rioja, Ribafrecha, Germany, Lagunilla del Jubera, Arrúbal, Agoncillo, La Rioja, Santa Engracia del Jubera
Q1615978 Q1606588 Q1769826 Q1637656 Q183 Q1646973 Q1647643 Q1606725 Q1769934
OR((Q17481175,P17,c(Q1048835)), (Q1636221,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q17481175
relation P17
action find
entity Q1636221
relation P47
type Q1048835
[ANSWERS] are Member of the Landtag of Baden-Württemberg situated in or share border with Murillo de Río Leza
{'OR': [['Q17481175', 'P17', {'concept': 'Q1048835'}], ['Q1636221', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1048835 . { { resource:Q17481175 property:P17 ?x } UNION { resource:Q1636221 property:P47 ?x } } }
Alberite Villamediana de Iregua Galilea, La Rioja Ribafrecha Germany Lagunilla del Jubera Arrúbal Agoncillo, La Rioja Santa Engracia del Jubera
Alberite, Villamediana de Iregua, Galilea, La Rioja, Ribafrecha, Germany, Lagunilla del Jubera, Arrúbal, Agoncillo, La Rioja and Santa Engracia del Jubera are Member of the Landtag of Baden-Württemberg situated in or share border with Murillo de Río Leza
Alberite Villamediana de Iregua Galilea, La Rioja Ribafrecha Germany Lagunilla del Jubera Arrúbal Agoncillo, La Rioja Santa Engracia del Jubera
action filter_type
action union
action find
entity Member of the Landtag of Baden-Württemberg
relation country
action find
entity Murillo de Río Leza
relation shares border with
type political territorial entity
{'OR': [['Member of the Landtag of Baden-Württemberg', 'country', {'concept': 'political territorial entity'}], ['Murillo de Río Leza', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_territorial_entity . { { resource:Member_of_the_Landtag_of_Baden-Württemberg property:country ?x } UNION { resource:Murillo_de_Río_Leza property:shares_border_with ?x } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q12044994 Q183
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with Germany and are the native countriesof Petr Pakosta ?
AND((Q183,P530,c(Q15617994)), (Q12044994,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q12044994
relation P27
type Q15617994
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q12044994', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q12044994 property:P27 ?o . resource:Q183 property:P530 ?o }
Petr Pakosta Germany
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity Petr Pakosta
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Petr Pakosta', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Petr_Pakosta property:country_of_citizenship ?o . resource:Germany property:diplomatic_relation ?o }
[]
designation for an administrative territorial entity
Q213
SYSTEM
Czech Republic
Q213
AND((Q183,P530,c(Q15617994)), (Q12044994,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q12044994
relation P27
type Q15617994
[ANSWER] have diplomatic relationships with Germany and are the native countriesof Petr Pakosta
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q12044994', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q12044994 property:P27 ?o . resource:Q183 property:P530 ?o }
Czech Republic
Czech Republic have diplomatic relationships with Germany and are the native countriesof Petr Pakosta
Czech Republic
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity Petr Pakosta
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Petr Pakosta', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Petr_Pakosta property:country_of_citizenship ?o . resource:Germany property:diplomatic_relation ?o }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12044994
P19
Q515
USER
Which city was Petr Pakosta born at ?
(Q12044994,P19,c(Q515))
action filter_type
action find
entity Q12044994
relation P19
type Q515
['Q12044994', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?m WHERE { resource:Q12044994 property:P19 ?m . ?m rdf:type ontology:Q515 }
Petr Pakosta
action filter_type
action find
entity Petr Pakosta
relation place of birth
type city
['Petr Pakosta', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?m WHERE { resource:Petr_Pakosta property:place_of_birth ?m . ?m rdf:type ontology:city }
[]
city
Q755698
SYSTEM
Svitavy
Q755698
(Q12044994,P19,c(Q515))
action filter_type
action find
entity Q12044994
relation P19
type Q515
Petr Pakosta was born in [ANSWER]
['Q12044994', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?m WHERE { resource:Q12044994 property:P19 ?m . ?m rdf:type ontology:Q515 }
Svitavy
Petr Pakosta was born in Svitavy
Svitavy
action filter_type
action find
entity Petr Pakosta
relation place of birth
type city
['Petr Pakosta', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?m WHERE { resource:Petr_Pakosta property:place_of_birth ?m . ?m rdf:type ontology:city }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q74881
P127
Q1048835 Q41176 Q811979
USER
Which political territories owned around the same number of buildings and architectural structures as Dalian ?
(c(Q41176)|c(Q811979),P127,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q41176
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q74881
relation P127
type Q41176
type Q811979
[[{'concept': 'Q41176'}, {'concept': 'Q811979'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?f ) WHERE { { ?q rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q811979 . ?x property:P127 ?q } UNION { ?x property:P127 ?q . ?q rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q41176 } } GROUP BY ?q } . FILTER ( ?f = ?n ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:P127 resource:Q74881 . { ?d rdf:type ?h . VALUES ( ?h ) { ( ontology:Q41176 ) ( ontology:Q811979 ) } } } } }
Dalian
action approx
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type building
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type architectural structure
action count
action filter_multi_types
action find_reverse
entity Dalian
relation owned by
type building
type architectural structure
[[{'concept': 'building'}, {'concept': 'architectural structure'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?f ) WHERE { { ?q rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:architectural_structure . ?x property:owned_by ?q } UNION { ?x property:owned_by ?q . ?q rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:building } } GROUP BY ?q } . FILTER ( ?f = ?n ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:owned_by resource:Dalian . { ?d rdf:type ?h . VALUES ( ?h ) { ( ontology:building ) ( ontology:architectural_structure ) } } } } }
[]
political territorial entity building architectural structure
Q408 Q35 Q16
SYSTEM
Australia, Denmark, Canada
Q192536 Q170322 Q1648590 Q318314 Q3741 Q20937 Q2321093 Q5691 Q188399 Q490638 Q6040 Q126514 Q211091 Q6053 Q192387 Q133083 Q217838 Q74881 Q8543 Q6041 Q2379199 Q6139 Q8178 Q6339 Q7379734 Q1823 Q8551 Q13786 Q5783 Q741765 Q193317 Q35 Q191091 Q2947 Q276176 Q1135166 Q46070 Q211106 Q202174 Q192697 Q188373 Q190930 Q192702 Q2175 Q2271 Q6142 Q909707 Q234 Q100166 Q17557 Q231 Q40 Q9331 Q6047 Q6045 Q9337 Q8182 Q23635 Q408 Q193307 Q207111 Q16 Q206926 Q5756
(c(Q41176)|c(Q811979),P127,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q41176
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q74881
relation P127
type Q41176
type Q811979
[ANSWERS] owned around the same number of buildings and architectural structures as Dalian
[[{'concept': 'Q41176'}, {'concept': 'Q811979'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?f ) WHERE { { ?q rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q811979 . ?x property:P127 ?q } UNION { ?x property:P127 ?q . ?q rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q41176 } } GROUP BY ?q } . FILTER ( ?f = ?n ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:P127 resource:Q74881 . { ?d rdf:type ?h . VALUES ( ?h ) { ( ontology:Q41176 ) ( ontology:Q811979 ) } } } } }
Zlín Region Qingdao Manises Ipatinga Special Region of Yogyakarta Gyeonggi Province Chorrillos South Karelia Central Bohemian Region Almendralejo Goslar Dumfries and Galloway Renfrewshire Gifhorn Londrina Gauteng Stirling Dalian Germersheim Wolfenbüttel politics of Edinburgh Havelland Karlsruhe Erzgebirgskreis Aachen Aceh Südliche Weinstraße Cebu Andalusia San Fernando Pardubice Region Denmark Karlovy Vary Region Dithmarschen Volta Redonda Greater London Authority Plzeň Region Moray Argyll and Bute South Moravian Region South Bohemia Region Vysočina Region Ústí nad Labem Region Riau Province South Sumatra Potsdam-Mittelmark Sestao Flemish Region Orkney Islands California Republic Walloon Region Austria Flemish Community Helmstedt Peine Flemish Region Rastatt Bermuda Australia Olomouc Region North Lanarkshire Canada North Ayrshire Community of Madrid
Australia, Denmark and Canada owned around the same number of buildings and architectural structures as Dalian
Australia Denmark Canada
action approx
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type building
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type architectural structure
action count
action filter_multi_types
action find_reverse
entity Dalian
relation owned by
type building
type architectural structure
[[{'concept': 'building'}, {'concept': 'architectural structure'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?f ) WHERE { { ?q rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:architectural_structure . ?x property:owned_by ?q } UNION { ?x property:owned_by ?q . ?q rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:building } } GROUP BY ?q } . FILTER ( ?f = ?n ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:owned_by resource:Dalian . { ?d rdf:type ?h . VALUES ( ?h ) { ( ontology:building ) ( ontology:architectural_structure ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q6040
P127
Q1048835 Q41176 Q811979
USER
And also tell me about Goslar?
(c(Q41176)|c(Q811979),P127,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q41176
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q6040
relation P127
type Q41176
type Q811979
[[{'concept': 'Q41176'}, {'concept': 'Q811979'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?a ) WHERE { ?d rdf:type ?n . VALUES ( ?n ) { ( ontology:Q41176 ) ( ontology:Q811979 ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { ?e property:P127 resource:Q6040 . { { ?e rdf:type ontology:Q41176 } UNION { ?e rdf:type ontology:Q811979 } } } } . FILTER ( ?a = ?t ) }
Goslar
action approx
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type building
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type architectural structure
action count
action filter_multi_types
action find_reverse
entity Goslar
relation owned by
type building
type architectural structure
[[{'concept': 'building'}, {'concept': 'architectural structure'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?a ) WHERE { ?d rdf:type ?n . VALUES ( ?n ) { ( ontology:building ) ( ontology:architectural_structure ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { ?e property:owned_by resource:Goslar . { { ?e rdf:type ontology:building } UNION { ?e rdf:type ontology:architectural_structure } } } } . FILTER ( ?a = ?t ) }
[]
political territorial entity building architectural structure
Q408 Q35 Q16
SYSTEM
Australia, Denmark, Canada
Q192536 Q170322 Q1648590 Q318314 Q3741 Q20937 Q2321093 Q5691 Q188399 Q490638 Q6040 Q126514 Q211091 Q6053 Q192387 Q133083 Q217838 Q74881 Q8543 Q6041 Q2379199 Q6139 Q8178 Q6339 Q7379734 Q1823 Q8551 Q13786 Q5783 Q741765 Q193317 Q35 Q191091 Q2947 Q276176 Q1135166 Q46070 Q211106 Q202174 Q192697 Q188373 Q190930 Q192702 Q2175 Q2271 Q6142 Q909707 Q234 Q100166 Q17557 Q231 Q40 Q9331 Q6047 Q6045 Q9337 Q8182 Q23635 Q408 Q193307 Q207111 Q16 Q206926 Q5756
(c(Q41176)|c(Q811979),P127,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q41176
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q6040
relation P127
type Q41176
type Q811979
[ANSWERS]
[[{'concept': 'Q41176'}, {'concept': 'Q811979'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?a ) WHERE { ?d rdf:type ?n . VALUES ( ?n ) { ( ontology:Q41176 ) ( ontology:Q811979 ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { ?e property:P127 resource:Q6040 . { { ?e rdf:type ontology:Q41176 } UNION { ?e rdf:type ontology:Q811979 } } } } . FILTER ( ?a = ?t ) }
Zlín Region Qingdao Manises Ipatinga Special Region of Yogyakarta Gyeonggi Province Chorrillos South Karelia Central Bohemian Region Almendralejo Goslar Dumfries and Galloway Renfrewshire Gifhorn Londrina Gauteng Stirling Dalian Germersheim Wolfenbüttel politics of Edinburgh Havelland Karlsruhe Erzgebirgskreis Aachen Aceh Südliche Weinstraße Cebu Andalusia San Fernando Pardubice Region Denmark Karlovy Vary Region Dithmarschen Volta Redonda Greater London Authority Plzeň Region Moray Argyll and Bute South Moravian Region South Bohemia Region Vysočina Region Ústí nad Labem Region Riau Province South Sumatra Potsdam-Mittelmark Sestao Flemish Region Orkney Islands California Republic Walloon Region Austria Flemish Community Helmstedt Peine Flemish Region Rastatt Bermuda Australia Olomouc Region North Lanarkshire Canada North Ayrshire Community of Madrid
Australia Denmark Canada
action approx
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type building
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type architectural structure
action count
action filter_multi_types
action find_reverse
entity Goslar
relation owned by
type building
type architectural structure
[[{'concept': 'building'}, {'concept': 'architectural structure'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?a ) WHERE { ?d rdf:type ?n . VALUES ( ?n ) { ( ontology:building ) ( ontology:architectural_structure ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { ?e property:owned_by resource:Goslar . { { ?e rdf:type ontology:building } UNION { ?e rdf:type ontology:architectural_structure } } } } . FILTER ( ?a = ?t ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q12153 Q408
P530 P190
Q15617994
USER
Which administrative territories have diplomatic relations with Australia or are the sister cities of Vilafant ?
OR((Q408,P530,c(Q15617994)), (Q12153,P190,c(Q15617994)))
action filter_type
action union
action find
entity Q408
relation P530
action find
entity Q12153
relation P190
type Q15617994
{'OR': [['Q408', 'P530', {'concept': 'Q15617994'}], ['Q12153', 'P190', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q408 property:P530 ?b } UNION { resource:Q12153 property:P190 ?b } } . ?b rdf:type ontology:Q15617994 }
Vilafant Australia
action filter_type
action union
action find
entity Australia
relation diplomatic relation
action find
entity Vilafant
relation sister city
type designation for an administrative territorial entity
{'OR': [['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Vilafant', 'sister city', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Australia property:diplomatic_relation ?b } UNION { resource:Vilafant property:sister_city ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q33788 Q258 Q801 Q953 Q37 Q921 Q34 Q574 Q836
SYSTEM
Some of them are Italy, New Caledonia, South Africa, Israel, Zambia, Lithuania, Brunei, Sweden, East Timor, Myanmar
Q702 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q786 Q101526 Q924 Q712 Q711 Q836 Q837 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q244 Q33 Q921 Q31 Q30 Q37 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q424 Q851 Q733 Q854 Q734 Q736 Q233 Q20 Q1041 Q27 Q29 Q1027 Q1020 Q843 Q1029 Q225 Q224 Q221 Q96 Q229 Q17 Q902 Q1036 Q1033 Q1030 Q191 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q215 Q218 Q219 Q916 Q833 Q977 Q1009 Q683 Q686 Q574 Q79 Q77 Q878 Q774 Q817 Q810 Q811 Q819 Q678 Q33788 Q869 Q953
OR((Q408,P530,c(Q15617994)), (Q12153,P190,c(Q15617994)))
action filter_type
action union
action find
entity Q408
relation P530
action find
entity Q12153
relation P190
type Q15617994
[ANSWERS] have diplomatic relations with Australia or are the sister cities of Vilafant
{'OR': [['Q408', 'P530', {'concept': 'Q15617994'}], ['Q12153', 'P190', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q408 property:P530 ?b } UNION { resource:Q12153 property:P190 ?b } } . ?b rdf:type ontology:Q15617994 }
Federated States of Micronesia Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Dominican Republic Rovetta Tanzania Fiji Mongolia Myanmar Nepal Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil El Salvador Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Barbados Finland Brunei Belgium United States of America Lithuania Poland Sweden Philippines Switzerland Italy Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Guyana Ecuador Malta Norway Senegal Ireland Spain Mauritius Malawi Pakistan Mozambique Bosnia and Herzegovina Croatia Republic of Macedonia Mexico Cyprus Japan Bangladesh Uganda Nigeria Namibia Estonia Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Slovenia Romania Bulgaria Angola Malaysia Djibouti Cameroon Samoa Vanuatu East Timor Egypt Uruguay United Arab Emirates Guatemala Kuwait Jordan Nicaragua Laos Tonga New Caledonia Thailand Zambia
Italy, New Caledonia, South Africa, Israel, Zambia, Lithuania, Brunei, Sweden, East Timor and Myanmar have diplomatic relations with Australia or are the sister cities of Vilafant
Italy New Caledonia South Africa Israel Zambia Lithuania Brunei Sweden East Timor Myanmar
action filter_type
action union
action find
entity Australia
relation diplomatic relation
action find
entity Vilafant
relation sister city
type designation for an administrative territorial entity
{'OR': [['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Vilafant', 'sister city', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Australia property:diplomatic_relation ?b } UNION { resource:Vilafant property:sister_city ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12153
P1001
Q12737077
USER
Which occupation has control over the jurisdiction of Vilafant ?
(c(Q12737077),P1001,Q12153)
action filter_type
action find_reverse
entity Q12153
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q12153']
SELECT DISTINCT ?u WHERE { ?u property:P1001 resource:Q12153 . ?u rdf:type ontology:Q12737077 }
Vilafant
action filter_type
action find_reverse
entity Vilafant
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Vilafant']
SELECT DISTINCT ?u WHERE { ?u property:applies_to_jurisdiction resource:Vilafant . ?u rdf:type ontology:occupation }
[]
occupation
Q26690488
SYSTEM
mayor of Vilafant
Q26690488
(c(Q12737077),P1001,Q12153)
action filter_type
action find_reverse
entity Q12153
relation P1001
type Q12737077
The [ANSWER] has control over the jurisdiction of Vilafant
[{'concept': 'Q12737077'}, 'P1001', 'Q12153']
SELECT DISTINCT ?u WHERE { ?u property:P1001 resource:Q12153 . ?u rdf:type ontology:Q12737077 }
mayor of Vilafant
The mayor of Vilafant has control over the jurisdiction of Vilafant
mayor of Vilafant
action filter_type
action find_reverse
entity Vilafant
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Vilafant']
SELECT DISTINCT ?u WHERE { ?u property:applies_to_jurisdiction resource:Vilafant . ?u rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12153
P1313
Q12737077
USER
Which occupation is fulfilled by Vilafant ?
(Q12153,P1313,c(Q12737077))
action filter_type
action find
entity Q12153
relation P1313
type Q12737077
['Q12153', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q12153 property:P1313 ?u . ?u rdf:type ontology:Q12737077 }
Vilafant
action filter_type
action find
entity Vilafant
relation office held by head of government
type occupation
['Vilafant', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Vilafant property:office_held_by_head_of_government ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q26690488
SYSTEM
mayor of Vilafant
Q26690488
(Q12153,P1313,c(Q12737077))
action filter_type
action find
entity Q12153
relation P1313
type Q12737077
The [ANSWER] is fulfilled by Vilafant
['Q12153', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q12153 property:P1313 ?u . ?u rdf:type ontology:Q12737077 }
mayor of Vilafant
The mayor of Vilafant is fulfilled by Vilafant
mayor of Vilafant
action filter_type
action find
entity Vilafant
relation office held by head of government
type occupation
['Vilafant', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Vilafant property:office_held_by_head_of_government ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12153
P6
Q502895
USER
Which person is Vilafant the head of goverment of ?
(Q12153,P6,c(Q502895))
action filter_type
action find
entity Q12153
relation P6
type Q502895
['Q12153', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q12153 property:P6 ?t . ?t rdf:type ontology:Q502895 }
Vilafant
action filter_type
action find
entity Vilafant
relation head of government
type common name
['Vilafant', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Vilafant property:head_of_government ?t . ?t rdf:type ontology:common_name }
[]
common name
Q14077081
SYSTEM
Consol Cantenys Arboli
Q14077081
(Q12153,P6,c(Q502895))
action filter_type
action find
entity Q12153
relation P6
type Q502895
[ANSWER] is Vilafant the head of goverment of
['Q12153', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q12153 property:P6 ?t . ?t rdf:type ontology:Q502895 }
Consol Cantenys Arboli
Consol Cantenys Arboli is Vilafant the head of goverment of
Consol Cantenys Arboli
action filter_type
action find
entity Vilafant
relation head of government
type common name
['Vilafant', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Vilafant property:head_of_government ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P417
Q502895
USER
Which people are the patron saint of Italy ?
(Q38,P417,c(Q502895))
action filter_type
action find
entity Q38
relation P417
type Q502895
['Q38', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q38 property:P417 ?o . ?o rdf:type ontology:Q502895 }
Italy
action filter_type
action find
entity Italy
relation patron saint
type common name
['Italy', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Italy property:patron_saint ?o . ?o rdf:type ontology:common_name }
[]
common name
Q676555 Q229190
SYSTEM
Francis of Assisi, Catherine of Siena
Q676555 Q229190
(Q38,P417,c(Q502895))
action filter_type
action find
entity Q38
relation P417
type Q502895
[ANSWERS] are the patron saint of Italy
['Q38', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q38 property:P417 ?o . ?o rdf:type ontology:Q502895 }
Francis of Assisi Catherine of Siena
Francis of Assisi and Catherine of Siena are the patron saint of Italy
Francis of Assisi Catherine of Siena
action filter_type
action find
entity Italy
relation patron saint
type common name
['Italy', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Italy property:patron_saint ?o . ?o rdf:type ontology:common_name }
[]