Simple Question (Direct)
Simple Question
Q68287
P20
Q15617994
USER
Where did Alexander, Prince of Lippe expire ?
(Q68287,P20,c(Q15617994))
action filter_type
action find
entity Q68287
relation P20
type Q15617994
['Q68287', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . resource:Q68287 property:P20 ?l }
Alexander, Prince of Lippe
action filter_type
action find
entity Alexander, Prince of Lippe
relation place of death
type designation for an administrative territorial entity
['Alexander, Prince of Lippe', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Alexander,_Prince_of_Lippe property:place_of_death ?l }
[]
designation for an administrative territorial entity
Q505642
SYSTEM
Eckersdorf
Q505642
(Q68287,P20,c(Q15617994))
action filter_type
action find
entity Q68287
relation P20
type Q15617994
Alexander , Prince of Lippe expired [ANSWER]
['Q68287', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . resource:Q68287 property:P20 ?l }
Eckersdorf
Alexander , Prince of Lippe expired Eckersdorf
Eckersdorf
action filter_type
action find
entity Alexander, Prince of Lippe
relation place of death
type designation for an administrative territorial entity
['Alexander, Prince of Lippe', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Alexander,_Prince_of_Lippe property:place_of_death ?l }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q68287
P40
Q502895
USER
Who has Alexander, Prince of Lippe as an offspring ?
(c(Q502895),P40,Q68287)
action filter_type
action find_reverse
entity Q68287
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q68287']
SELECT DISTINCT ?h WHERE { ?h property:P40 resource:Q68287 . ?h rdf:type ontology:Q502895 }
Alexander, Prince of Lippe
action filter_type
action find_reverse
entity Alexander, Prince of Lippe
relation child
type common name
[{'concept': 'common name'}, 'child', 'Alexander, Prince of Lippe']
SELECT DISTINCT ?h WHERE { ?h property:child resource:Alexander,_Prince_of_Lippe . ?h rdf:type ontology:common_name }
[]
common name
Q213882
SYSTEM
Leopold II, Prince of Lippe
Q213882
(c(Q502895),P40,Q68287)
action filter_type
action find_reverse
entity Q68287
relation P40
type Q502895
[ANSWER] has Alexander, Prince of Lippe as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q68287']
SELECT DISTINCT ?h WHERE { ?h property:P40 resource:Q68287 . ?h rdf:type ontology:Q502895 }
Leopold II, Prince of Lippe
Leopold II, Prince of Lippe has Alexander, Prince of Lippe as an offspring
Leopold II, Prince of Lippe
action filter_type
action find_reverse
entity Alexander, Prince of Lippe
relation child
type common name
[{'concept': 'common name'}, 'child', 'Alexander, Prince of Lippe']
SELECT DISTINCT ?h WHERE { ?h property:child resource:Alexander,_Prince_of_Lippe . ?h rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q505642
P19
Q502895
USER
Which person has birthplace at Eckersdorf ?
(c(Q502895),P19,Q505642)
action filter_type
action find_reverse
entity Q505642
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q505642']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . ?v property:P19 resource:Q505642 }
Eckersdorf
action filter_type
action find_reverse
entity Eckersdorf
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Eckersdorf']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . ?v property:place_of_birth resource:Eckersdorf }
[]
common name
Q62684
SYSTEM
Adolf Hühnlein
Q62684
(c(Q502895),P19,Q505642)
action filter_type
action find_reverse
entity Q505642
relation P19
type Q502895
Of [ANSWER] has birthplace at Eckersdorf
[{'concept': 'Q502895'}, 'P19', 'Q505642']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . ?v property:P19 resource:Q505642 }
Adolf Hühnlein
Of Adolf Hühnlein has birthplace at Eckersdorf
Adolf Hühnlein
action filter_type
action find_reverse
entity Eckersdorf
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Eckersdorf']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . ?v property:place_of_birth resource:Eckersdorf }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q62684
P937
Q56061
USER
What is the location where that person worked ?
(Q62684,P937,c(Q56061))
action filter_type
action find
entity Q62684
relation P937
type Q56061
['Q62684', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q62684 property:P937 ?u . ?u rdf:type ontology:Q56061 }
Adolf Hühnlein
action filter_type
action find
entity Adolf Hühnlein
relation work location
type administrative territorial entity
['Adolf Hühnlein', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Adolf_Hühnlein property:work_location ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q62684,P937,c(Q56061))
action filter_type
action find
entity Q62684
relation P937
type Q56061
The location that person worked is in [ANSWER]
['Q62684', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q62684 property:P937 ?u . ?u rdf:type ontology:Q56061 }
Berlin
The location that person worked is in Berlin
Berlin
action filter_type
action find
entity Adolf Hühnlein
relation work location
type administrative territorial entity
['Adolf Hühnlein', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Adolf_Hühnlein property:work_location ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q64 Q60957
P6
Q502895
USER
Is that administrative territory the head of goverment of Eberhard Diepgen ?
(Q64,P6,Q60957)
action is_in
entity Q60957
action find
entity Q64
relation P6
['Q64', 'P6', 'Q60957']
ASK WHERE { resource:Q64 property:P6 resource:Q60957 }
Berlin Eberhard Diepgen
action is_in
entity Eberhard Diepgen
action find
entity Berlin
relation head of government
['Berlin', 'head of government', 'Eberhard Diepgen']
ASK WHERE { resource:Berlin property:head_of_government resource:Eberhard_Diepgen }
[]
common name
SYSTEM
YES
(Q64,P6,Q60957)
action is_in
entity Q60957
action find
entity Q64
relation P6
[ANSWER]
['Q64', 'P6', 'Q60957']
ASK WHERE { resource:Q64 property:P6 resource:Q60957 }
Yes
action is_in
entity Eberhard Diepgen
action find
entity Berlin
relation head of government
['Berlin', 'head of government', 'Eberhard Diepgen']
ASK WHERE { resource:Berlin property:head_of_government resource:Eberhard_Diepgen }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q334746
P17
Q1048835
USER
Which political territory does Ühlingen-Birkendorf belong to ?
(Q334746,P17,c(Q1048835))
action filter_type
action find
entity Q334746
relation P17
type Q1048835
['Q334746', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { resource:Q334746 property:P17 ?o . ?o rdf:type ontology:Q1048835 }
Ühlingen-Birkendorf
action filter_type
action find
entity Ühlingen-Birkendorf
relation country
type political territorial entity
['Ühlingen-Birkendorf', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Ühlingen-Birkendorf property:country ?o . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q334746,P17,c(Q1048835))
action filter_type
action find
entity Q334746
relation P17
type Q1048835
Ühlingen-Birkendorf belongs to Nazi [ANSWER]
['Q334746', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { resource:Q334746 property:P17 ?o . ?o rdf:type ontology:Q1048835 }
Germany
Ühlingen-Birkendorf belongs to Nazi Germany
Germany
action filter_type
action find
entity Ühlingen-Birkendorf
relation country
type political territorial entity
['Ühlingen-Birkendorf', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Ühlingen-Birkendorf property:country ?o . ?o rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q21915315
Q1048835
USER
And what about Cainbable Creek?
(Q21915315,P17,c(Q1048835))
action filter_type
action find
entity Q21915315
relation P17
type Q1048835
['Q21915315', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q21915315 property:P17 ?l . ?l rdf:type ontology:Q1048835 }
Cainbable Creek
action filter_type
action find
entity Cainbable Creek
relation country
type political territorial entity
['Cainbable Creek', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Cainbable_Creek property:country ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
(Q21915315,P17,c(Q1048835))
action filter_type
action find
entity Q21915315
relation P17
type Q1048835
[ANSWER]
['Q21915315', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q21915315 property:P17 ?l . ?l rdf:type ontology:Q1048835 }
Australia
Australia
action filter_type
action find
entity Cainbable Creek
relation country
type political territorial entity
['Cainbable Creek', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Cainbable_Creek property:country ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q486972 Q355304 Q15617994
USER
Which administrative territories come from min number of human settlements or watercourses ?
(c(Q15617994),P138,c(Q486972)|c(Q355304))
action argmin
action union
action find_tuple_counts
relation P138
type Q15617994
type Q486972
action find_tuple_counts
relation P138
type Q15617994
type Q355304
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q486972'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?w WHERE { ?a rdf:type ?u . VALUES ( ?u ) { ( ontology:Q486972 ) ( ontology:Q355304 ) } } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?s WHERE { { ?s property:P138 ?e . ?s rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q486972 } UNION { ?s property:P138 ?e . ?s rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q355304 } } GROUP BY ?s } . FILTER ( ?d = ?l ) }
action argmin
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type watercourse
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'human settlement'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?w WHERE { ?a rdf:type ?u . VALUES ( ?u ) { ( ontology:human_settlement ) ( ontology:watercourse ) } } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?s WHERE { { ?s property:named_after ?e . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:human_settlement } UNION { ?s property:named_after ?e . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:watercourse } } GROUP BY ?s } . FILTER ( ?d = ?l ) }
[]
human settlement watercourse designation for an administrative territorial entity
Q155 Q30 Q230
SYSTEM
Brazil, United States of America, Georgia
Q701 Q705 Q707 Q1087137 Q709 Q1027 Q124000 Q12563 Q142 Q33 Q685048 Q21671144 Q801 Q1093 Q12536 Q189 Q12820 Q1090684 Q657 Q1098820 Q3349 Q378004 Q568751 Q2316529 Q2803031 Q711 Q710 Q1979 Q625403 Q691368 Q1817784 Q199974 Q2998020 Q7408058 Q1028 Q691890 Q3249 Q3164 Q1465069 Q554491 Q159 Q686924 Q598193 Q12526 Q12689 Q155 Q1232680 Q231168 Q739 Q12589 Q161258 Q1965 Q1508919 Q3259 Q786 Q5015782 Q676543 Q12694 Q3563282 Q12745 Q451448 Q32 Q31 Q30 Q924 Q36 Q928 Q39 Q2514636 Q1452646 Q986 Q219 Q736 Q4336071 Q1508927 Q11140 Q676178 Q236 Q230 Q221 Q232 Q233 Q2304605 Q1914678 Q238 Q566032 Q12661 Q20 Q4229407 Q621869 Q1042 Q475659 Q691265 Q28 Q12580 Q1025 Q683555 Q1020 Q843 Q12709 Q184 Q548396 Q1029 Q3336 Q3334 Q707950 Q3131 Q1904 Q27495866 Q3139 Q12782 Q3342 Q558771 Q12700 Q12703 Q1101 Q811 Q347 Q71090 Q4165945 Q21915715 Q902 Q3120 Q967 Q962 Q963 Q694 Q3125 Q114 Q117 Q1788988 Q754 Q752 Q750 Q20095245 Q217 Q12642 Q160307 Q505607 Q6661829 Q2295479 Q2115819 Q912 Q2136219 Q977 Q1019 Q1008 Q20310 Q760 Q1030 Q784 Q79 Q775 Q776 Q770 Q1393469 Q27 Q1011 Q1013 Q4149 Q8575586 Q3105 Q1558632 Q1913193 Q4066675 Q599866 Q2938 Q12751 Q1951 Q1952 Q2528268 Q1231 Q13401101
(c(Q15617994),P138,c(Q486972)|c(Q355304))
action argmin
action union
action find_tuple_counts
relation P138
type Q15617994
type Q486972
action find_tuple_counts
relation P138
type Q15617994
type Q355304
[ANSWERS] come from min number of human settlements or watercourses
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q486972'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?w WHERE { ?a rdf:type ?u . VALUES ( ?u ) { ( ontology:Q486972 ) ( ontology:Q355304 ) } } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?s WHERE { { ?s property:P138 ?e . ?s rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q486972 } UNION { ?s property:P138 ?e . ?s rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q355304 } } GROUP BY ?s } . FILTER ( ?d = ?l ) }
North Holland Zeeland Flevoland Rockaway, New Jersey Marshall Islands Mauritius Victoria Landes France Finland Simplon Mezhetchina Israel Limburg Abbasid caliphate Iceland Yvelines Montserrat Chad Gênes Côtes-d'Armor Forêts Mont-Tonnerre Noordpolderzijl Pasop Mongolia Kiribati Prince Edward Island Schwielowsee Léman Leninkent, Makhachkala, Republic of Dagestan Hürtgenwald Corse Sam Rayburn Independent School District Morocco Corcyre Calvados Ardennes Frise Banan District Russia Mer-Égée Apennins Gironde Pas-de-Calais Brazil Ithaque Zuyderzée Colombia Manche Clipperton Island New Brunswick Marengo Cantal Dominican Republic Cabot Public Schools Sankt Thomas Puy-de-Dôme Rumi District Savoie Am Salzhaff Luxembourg Belgium United States of America Tanzania Poland Philippines Switzerland Vogtei Montenotte Eritrea Bulgaria Ecuador Ordzhonikidzevskiy raion of Zaporizhzhya Méditerranée Möhnesee Viereck Montenegro Georgia Republic of Macedonia Kazakhstan Malta Spitsbergen Vlagtwedder-Veldhuis San Marino Rheinbreitbach Nord Norway Komarovsky, Orenburg Oblast Georgsdorf Seychelles Sassenburg Mont-Terrible Hungary Lozère Mauritania Vyronas Malawi Pakistan Pyrénées-Orientales Belarus Pommerby Mozambique Corse-du-Sud Haute-Corse Muldestausee Alpes-de-Haute-Provence Ontario Corse Alpes-Maritimes Territoire de Belfort Côte-d'Or Wedendorfersee Hautes-Pyrénées Pyrénées-Atlantiques North Brabant Nicaragua Liechtenstein Augustusburg Sheikh Zayed City Kloster Tempzin Bangladesh Jura Burundi Benin Botswana South Holland Hautes-Alpes Kenya Ghana Trasimène Trinidad and Tobago Groningen Bolivia Sept-Saints Republic of Moldova Morbihan Fatimid caliphate Philippsreut Llanvaches Zandberg, Zeeland Klein-Ulsda Mali Amsterdam, Saskatchewan Djibouti Madagascar Côte d'Ivoire Kuckssee Saint Lucia Namibia Dominica Egypt Gelderland Utrecht Friesland Jemmapes Ireland Cape Verde Lesotho Neustadt an der Weinstraße Umayyad Caliphate Vosges Rome Chkalovsk Microdistrict Annino Lev Tolstoy Leverkusen Haute-Savoie Alberta Nova Scotia Mont-Blanc Kosovo Region Brandon Valley School District
Brazil, United States of America and Georgia come from min number of human settlements or watercourses
Brazil United States of America Georgia
action argmin
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type watercourse
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'human settlement'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?w WHERE { ?a rdf:type ?u . VALUES ( ?u ) { ( ontology:human_settlement ) ( ontology:watercourse ) } } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?s WHERE { { ?s property:named_after ?e . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:human_settlement } UNION { ?s property:named_after ?e . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:watercourse } } GROUP BY ?s } . FILTER ( ?d = ?l ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3322708
P530
Q1048835
USER
Do San Sebastian District have diplomatic associations with those administrative territories ?
(Q3322708,P530,Q155) (Q3322708,P530,Q30) (Q3322708,P530,Q230)
action is_in
entity prev_answer
action find
entity Q3322708
relation P530
['Q3322708', 'P530', 'Q155'] ['Q3322708', 'P530', 'Q30'] ['Q3322708', 'P530', 'Q230']
ASK WHERE { resource:Q3322708 property:P530 ?e . VALUES ( ?e ) { ( resource:Q701 ) ( resource:Q705 ) ( resource:Q707 ) } }
San Sebastian District
action is_in
entity prev_answer
action find
entity San Sebastian District
relation diplomatic relation
['San Sebastian District', 'diplomatic relation', 'Brazil'] ['San Sebastian District', 'diplomatic relation', 'United States of America'] ['San Sebastian District', 'diplomatic relation', 'Georgia']
ASK WHERE { resource:San_Sebastian_District property:diplomatic_relation ?e . VALUES ( ?e ) { ( resource:North_Holland ) ( resource:Zeeland ) ( resource:Flevoland ) } }
[]
political territorial entity
SYSTEM
NO
(Q3322708,P530,Q155) (Q3322708,P530,Q30) (Q3322708,P530,Q230)
action is_in
entity prev_answer
action find
entity Q3322708
relation P530
[ANSWER]
['Q3322708', 'P530', 'Q155'] ['Q3322708', 'P530', 'Q30'] ['Q3322708', 'P530', 'Q230']
ASK WHERE { resource:Q3322708 property:P530 ?e . VALUES ( ?e ) { ( resource:Q701 ) ( resource:Q705 ) ( resource:Q707 ) } }
No
action is_in
entity prev_answer
action find
entity San Sebastian District
relation diplomatic relation
['San Sebastian District', 'diplomatic relation', 'Brazil'] ['San Sebastian District', 'diplomatic relation', 'United States of America'] ['San Sebastian District', 'diplomatic relation', 'Georgia']
ASK WHERE { resource:San_Sebastian_District property:diplomatic_relation ?e . VALUES ( ?e ) { ( resource:North_Holland ) ( resource:Zeeland ) ( resource:Flevoland ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q155 Q127200
P530
Q15617994
USER
Does Waldrohrbach have diplomatic relationships with Brazil ?
(Q155,P530,Q127200)
action is_in
entity Q127200
action find
entity Q155
relation P530
['Q155', 'P530', 'Q127200']
ASK WHERE { resource:Q155 property:P530 resource:Q127200 }
Brazil Waldrohrbach
action is_in
entity Waldrohrbach
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Waldrohrbach']
ASK WHERE { resource:Brazil property:diplomatic_relation resource:Waldrohrbach }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q155,P530,Q127200)
action is_in
entity Q127200
action find
entity Q155
relation P530
[ANSWER]
['Q155', 'P530', 'Q127200']
ASK WHERE { resource:Q155 property:P530 resource:Q127200 }
No
action is_in
entity Waldrohrbach
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Waldrohrbach']
ASK WHERE { resource:Brazil property:diplomatic_relation resource:Waldrohrbach }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q372127 Q68287
P47 P27
Q1048835
USER
Which political territories do Alexander, Prince of Lippe belong to or are bordered by Àger ?
OR((Q68287,P27,c(Q1048835)), (Q372127,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q68287
relation P27
action find
entity Q372127
relation P47
type Q1048835
{'OR': [['Q68287', 'P27', {'concept': 'Q1048835'}], ['Q372127', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q372127 property:P47 ?s } UNION { resource:Q68287 property:P27 ?s } } . ?s rdf:type ontology:Q1048835 }
Àger Alexander, Prince of Lippe
action filter_type
action union
action find
entity Alexander, Prince of Lippe
relation country of citizenship
action find
entity Àger
relation shares border with
type political territorial entity
{'OR': [['Alexander, Prince of Lippe', 'country of citizenship', {'concept': 'political territorial entity'}], ['Àger', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Àger property:shares_border_with ?s } UNION { resource:Alexander,_Prince_of_Lippe property:country_of_citizenship ?s } } . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1646906 Q984673 Q1995286 Q1648087 Q183 Q1766727 Q18264 Q18258 Q18267
SYSTEM
Os de Balaguer, Viacamp y Litera, Camarasa, Les Avellanes i Santa Linya, Germany, Vilanova de Meià, Llimiana, Castell de Mur, Sant Esteve de la Sarga
Q1646906 Q984673 Q1995286 Q1648087 Q183 Q1766727 Q18264 Q18258 Q18267
OR((Q68287,P27,c(Q1048835)), (Q372127,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q68287
relation P27
action find
entity Q372127
relation P47
type Q1048835
[ANSWERS] Alexander, Prince of Lippe belong to or are bordered by Àger
{'OR': [['Q68287', 'P27', {'concept': 'Q1048835'}], ['Q372127', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q372127 property:P47 ?s } UNION { resource:Q68287 property:P27 ?s } } . ?s rdf:type ontology:Q1048835 }
Os de Balaguer Viacamp y Litera Camarasa Les Avellanes i Santa Linya Germany Vilanova de Meià Llimiana Castell de Mur Sant Esteve de la Sarga
Os de Balaguer, Viacamp y Litera, Camarasa, Les Avellanes i Santa Linya, Germany, Vilanova de Meià, Llimiana, Castell de Mur and Sant Esteve de la Sarga Alexander, Prince of Lippe belong to or are bordered by Àger
Os de Balaguer Viacamp y Litera Camarasa Les Avellanes i Santa Linya Germany Vilanova de Meià Llimiana Castell de Mur Sant Esteve de la Sarga
action filter_type
action union
action find
entity Alexander, Prince of Lippe
relation country of citizenship
action find
entity Àger
relation shares border with
type political territorial entity
{'OR': [['Alexander, Prince of Lippe', 'country of citizenship', {'concept': 'political territorial entity'}], ['Àger', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Àger property:shares_border_with ?s } UNION { resource:Alexander,_Prince_of_Lippe property:country_of_citizenship ?s } } . ?s rdf:type ontology:political_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q1048835
USER
How many political territories do that political territory share a border with ?
(c(Q1048835),P47,Q1995286)
[{'concept': 'Q1048835'}, 'P47', 'Q1995286']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q1995286 . ?z rdf:type ontology:Q1048835 }
[{'concept': 'political territorial entity'}, 'shares border with', 'Camarasa']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Camarasa . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Quantitative|Count|Single entity type|Clarification
Q1766727
SYSTEM
Did you mean Vilanova de Meià ?
(c(Q1048835),P47,Q1646906) (c(Q1048835),P47,Q984673) (c(Q1048835),P47,Q1995286) (c(Q1048835),P47,Q1648087) (c(Q1048835),P47,Q183) (c(Q1048835),P47,Q1766727) (c(Q1048835),P47,Q18264) (c(Q1048835),P47,Q18258) (c(Q1048835),P47,Q18267)
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q1646906'] [{'concept': 'Q1048835'}, 'P47', 'Q984673'] [{'concept': 'Q1048835'}, 'P47', 'Q1995286'] [{'concept': 'Q1048835'}, 'P47', 'Q1648087'] [{'concept': 'Q1048835'}, 'P47', 'Q183'] [{'concept': 'Q1048835'}, 'P47', 'Q1766727'] [{'concept': 'Q1048835'}, 'P47', 'Q18264'] [{'concept': 'Q1048835'}, 'P47', 'Q18258'] [{'concept': 'Q1048835'}, 'P47', 'Q18267']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q1995286 . ?z rdf:type ontology:Q1048835 }
Did you mean Vilanova de Meià ?
Vilanova de Meià
[{'concept': 'political territorial entity'}, 'shares border with', 'Os de Balaguer'] [{'concept': 'political territorial entity'}, 'shares border with', 'Viacamp y Litera'] [{'concept': 'political territorial entity'}, 'shares border with', 'Camarasa'] [{'concept': 'political territorial entity'}, 'shares border with', 'Les Avellanes i Santa Linya'] [{'concept': 'political territorial entity'}, 'shares border with', 'Germany'] [{'concept': 'political territorial entity'}, 'shares border with', 'Vilanova de Meià'] [{'concept': 'political territorial entity'}, 'shares border with', 'Llimiana'] [{'concept': 'political territorial entity'}, 'shares border with', 'Castell de Mur'] [{'concept': 'political territorial entity'}, 'shares border with', 'Sant Esteve de la Sarga']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Camarasa . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Camarasa. Could you tell me the answer for that?
(c(Q1048835),P47,Q1995286)
Q1995286
[{'concept': 'Q1048835'}, 'P47', 'Q1995286']
[{'concept': 'political territorial entity'}, 'shares border with', 'Camarasa']
[]
SYSTEM
9
Q1648087 Q1766727 Q18264 Q696797 Q1769656 Q1769666 Q664499 Q1646906 Q372127
(c(Q1048835),P47,Q1995286)
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q1995286']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q1995286 . ?z rdf:type ontology:Q1048835 }
Les Avellanes i Santa Linya Vilanova de Meià Llimiana Balaguer Cubells La Sentiu de Sió Alòs de Balaguer Os de Balaguer Àger
9
[{'concept': 'political territorial entity'}, 'shares border with', 'Camarasa']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Camarasa . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1995286
P47
Q1048835
USER
How many political territories are next to the border of Camarasa ?
(c(Q1048835),P47,Q1995286)
action count
action filter_type
action find_reverse
entity Q1995286
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q1995286']
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { ?s property:P47 resource:Q1995286 . ?s rdf:type ontology:Q1048835 }
Camarasa
action count
action filter_type
action find_reverse
entity Camarasa
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Camarasa']
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { ?s property:shares_border_with resource:Camarasa . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
9
Q1648087 Q1766727 Q18264 Q696797 Q1769656 Q1769666 Q664499 Q1646906 Q372127
(c(Q1048835),P47,Q1995286)
action count
action filter_type
action find_reverse
entity Q1995286
relation P47
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q1995286']
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { ?s property:P47 resource:Q1995286 . ?s rdf:type ontology:Q1048835 }
Les Avellanes i Santa Linya Vilanova de Meià Llimiana Balaguer Cubells La Sentiu de Sió Alòs de Balaguer Os de Balaguer Àger
9
action count
action filter_type
action find_reverse
entity Camarasa
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Camarasa']
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { ?s property:shares_border_with resource:Camarasa . ?s rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1995286
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of that political territory ?
action filter_type
action find
entity Q1995286
relation P1313
type Q12737077
SELECT DISTINCT ?x WHERE { resource:Q1995286 property:P1313 ?x . ?x rdf:type ontology:Q12737077 }
Camarasa
action filter_type
action find
entity Camarasa
relation office held by head of government
type occupation
SELECT DISTINCT ?x WHERE { resource:Camarasa property:office_held_by_head_of_government ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q26697574
SYSTEM
mayor of Camarasa
Q26697574
action filter_type
action find
entity Q1995286
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of that political territory
SELECT DISTINCT ?x WHERE { resource:Q1995286 property:P1313 ?x . ?x rdf:type ontology:Q12737077 }
mayor of Camarasa
The mayor of Camarasa serves as the political office that is fulfilled by the head of the government of that political territory
mayor of Camarasa
action filter_type
action find
entity Camarasa
relation office held by head of government
type occupation
SELECT DISTINCT ?x WHERE { resource:Camarasa property:office_held_by_head_of_government ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1995286
P1001
Q12737077
USER
Which occupation has control over the jurisdiction of that political territory ?
(c(Q12737077),P1001,Q26697574)
action filter_type
action find_reverse
entity Q1995286
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q26697574']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q12737077 . ?o property:P1001 resource:Q1995286 }
Camarasa
action filter_type
action find_reverse
entity Camarasa
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'mayor of Camarasa']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:occupation . ?o property:applies_to_jurisdiction resource:Camarasa }
[]
occupation
Q26697574
SYSTEM
mayor of Camarasa
Q26697574
(c(Q12737077),P1001,Q26697574)
action filter_type
action find_reverse
entity Q1995286
relation P1001
type Q12737077
The [ANSWER] has control over the jurisdiction of that political territory
[{'concept': 'Q12737077'}, 'P1001', 'Q26697574']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q12737077 . ?o property:P1001 resource:Q1995286 }
mayor of Camarasa
The mayor of Camarasa has control over the jurisdiction of that political territory
mayor of Camarasa
action filter_type
action find_reverse
entity Camarasa
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'mayor of Camarasa']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:occupation . ?o property:applies_to_jurisdiction resource:Camarasa }
[]