Simple Question (Direct)
Simple Question
Q1210
P47
Q15617994
USER
Which administrative territories are bordered by Lombardy ?
(Q1210,P47,c(Q15617994))
action filter_type
action find
entity Q1210
relation P47
type Q15617994
['Q1210', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q1210 property:P47 ?j . ?j rdf:type ontology:Q15617994 }
Lombardy
action filter_type
action find
entity Lombardy
relation shares border with
type designation for an administrative territorial entity
['Lombardy', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Lombardy property:shares_border_with ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1216 Q1263 Q1243
SYSTEM
Piedmont, Emilia-Romagna, Veneto
Q1263 Q1216 Q1243 Q1237
(Q1210,P47,c(Q15617994))
action filter_type
action find
entity Q1210
relation P47
type Q15617994
The [ANSWERS] are bordered by Lombardy
['Q1210', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q1210 property:P47 ?j . ?j rdf:type ontology:Q15617994 }
Emilia-Romagna Piedmont Veneto Trentino-South Tyrol
The Piedmont, Emilia-Romagna and Veneto are bordered by Lombardy
Piedmont Emilia-Romagna Veneto
action filter_type
action find
entity Lombardy
relation shares border with
type designation for an administrative territorial entity
['Lombardy', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Lombardy property:shares_border_with ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1216 Q1263 Q1243
P6
Q502895
USER
What people are those administrative territories the head of goverment of ?
(Q1216,P6,c(Q502895)) (Q1263,P6,c(Q502895)) (Q1243,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
['Q1216', 'P6', {'concept': 'Q502895'}] ['Q1263', 'P6', {'concept': 'Q502895'}] ['Q1243', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { VALUES ( ?j ) { ( resource:Q1263 ) ( resource:Q1216 ) ( resource:Q1243 ) } . ?j property:P6 ?x . ?x rdf:type ontology:Q502895 }
Piedmont Emilia-Romagna Veneto
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Piedmont', 'head of government', {'concept': 'common name'}] ['Emilia-Romagna', 'head of government', {'concept': 'common name'}] ['Veneto', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { VALUES ( ?j ) { ( resource:Emilia-Romagna ) ( resource:Piedmont ) ( resource:Veneto ) } . ?j property:head_of_government ?x . ?x rdf:type ontology:common_name }
[]
common name
Q1054714 Q762411 Q508338
SYSTEM
Sergio Chiamparino, Roberto Cota, Luca Zaia
Q1054714 Q762411 Q18590052 Q1238321 Q508338
(Q1216,P6,c(Q502895)) (Q1263,P6,c(Q502895)) (Q1243,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
Those administrative territories the head of goverment of are [ANSWERS]
['Q1216', 'P6', {'concept': 'Q502895'}] ['Q1263', 'P6', {'concept': 'Q502895'}] ['Q1243', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { VALUES ( ?j ) { ( resource:Q1263 ) ( resource:Q1216 ) ( resource:Q1243 ) } . ?j property:P6 ?x . ?x rdf:type ontology:Q502895 }
Sergio Chiamparino Roberto Cota Stefano Bonaccini Vasco Errani Luca Zaia
Those administrative territories the head of goverment of are Sergio Chiamparino, Roberto Cota and Luca Zaia
Sergio Chiamparino Roberto Cota Luca Zaia
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Piedmont', 'head of government', {'concept': 'common name'}] ['Emilia-Romagna', 'head of government', {'concept': 'common name'}] ['Veneto', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { VALUES ( ?j ) { ( resource:Emilia-Romagna ) ( resource:Piedmont ) ( resource:Veneto ) } . ?j property:head_of_government ?x . ?x rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q762411
P937
Q56061
USER
What is the location where that person worked ?
(Q762411,P937,c(Q56061))
action filter_type
action find
entity Q762411
relation P937
type Q56061
['Q762411', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q762411 property:P937 ?b . ?b rdf:type ontology:Q56061 }
Roberto Cota
action filter_type
action find
entity Roberto Cota
relation work location
type administrative territorial entity
['Roberto Cota', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Roberto_Cota property:work_location ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q1054714
SYSTEM
Did you mean Sergio Chiamparino ?
Q1054714 Q762411 Q508338
(Q1054714,P937,c(Q56061)) (Q762411,P937,c(Q56061)) (Q508338,P937,c(Q56061))
[ANSWER]
['Q1054714', 'P937', {'concept': 'Q56061'}] ['Q762411', 'P937', {'concept': 'Q56061'}] ['Q508338', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q762411 property:P937 ?b . ?b rdf:type ontology:Q56061 }
Sergio Chiamparino Roberto Cota Luca Zaia
Did you mean Sergio Chiamparino ?
Sergio Chiamparino
['Sergio Chiamparino', 'work location', {'concept': 'administrative territorial entity'}] ['Roberto Cota', 'work location', {'concept': 'administrative territorial entity'}] ['Luca Zaia', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Roberto_Cota property:work_location ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Roberto Cota. Could you tell me the answer for that?
(Q762411,P937,c(Q56061))
Q762411
['Q762411', 'P937', {'concept': 'Q56061'}]
['Roberto Cota', 'work location', {'concept': 'administrative territorial entity'}]
[]
Q220
SYSTEM
Rome
Q220
(Q762411,P937,c(Q56061))
action filter_type
action find
entity Q762411
relation P937
type Q56061
The location that person worked is in [ANSWER]
['Q762411', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q762411 property:P937 ?b . ?b rdf:type ontology:Q56061 }
Rome
The location that person worked is in Rome
Rome
action filter_type
action find
entity Roberto Cota
relation work location
type administrative territorial entity
['Roberto Cota', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Roberto_Cota property:work_location ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6655 Q1216
P47 P421
Q15617994
USER
Which administrative territories do Piedmont share a border with and have UTC+01:00 as their time zone ?
AND((c(Q15617994),P47,Q1216), (c(Q15617994),P421,Q6655))
action filter_type
action intersection
action find_reverse
entity Q1216
relation P47
action find_reverse
entity Q6655
relation P421
type Q15617994
{'AND': [[{'concept': 'Q15617994'}, 'P47', 'Q1216'], [{'concept': 'Q15617994'}, 'P421', 'Q6655']]}
SELECT DISTINCT ?k WHERE { ?k property:P47 resource:Q1216 . ?k property:P421 resource:Q6655 . ?k rdf:type ontology:Q15617994 }
UTC+01:00 Piedmont
action filter_type
action intersection
action find_reverse
entity Piedmont
relation shares border with
action find_reverse
entity UTC+01:00
relation located in time zone
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Piedmont'], [{'concept': 'designation for an administrative territorial entity'}, 'located in time zone', 'UTC+01:00']]}
SELECT DISTINCT ?k WHERE { ?k property:shares_border_with resource:Piedmont . ?k property:located_in_time_zone resource:UTC+01:00 . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1256 Q12745 Q1263 Q1210 Q3125 Q3131 Q3139 Q1222
SYSTEM
Liguria, Savoie, Emilia-Romagna, Lombardy, Hautes-Alpes, Alpes-de-Haute-Provence, Alpes-Maritimes, Aosta Valley
Q1256 Q12745 Q1263 Q1210 Q3125 Q3131 Q3139 Q1222
AND((c(Q15617994),P47,Q1216), (c(Q15617994),P421,Q6655))
action filter_type
action intersection
action find_reverse
entity Q1216
relation P47
action find_reverse
entity Q6655
relation P421
type Q15617994
Nt The [ANSWERS] Piedmo share a border with
{'AND': [[{'concept': 'Q15617994'}, 'P47', 'Q1216'], [{'concept': 'Q15617994'}, 'P421', 'Q6655']]}
SELECT DISTINCT ?k WHERE { ?k property:P47 resource:Q1216 . ?k property:P421 resource:Q6655 . ?k rdf:type ontology:Q15617994 }
Liguria Savoie Emilia-Romagna Lombardy Hautes-Alpes Alpes-de-Haute-Provence Alpes-Maritimes Aosta Valley
Nt The Liguria, Savoie, Emilia-Romagna, Lombardy, Hautes-Alpes, Alpes-de-Haute-Provence, Alpes-Maritimes and Aosta Valley Piedmo share a border with
Liguria Savoie Emilia-Romagna Lombardy Hautes-Alpes Alpes-de-Haute-Provence Alpes-Maritimes Aosta Valley
action filter_type
action intersection
action find_reverse
entity Piedmont
relation shares border with
action find_reverse
entity UTC+01:00
relation located in time zone
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Piedmont'], [{'concept': 'designation for an administrative territorial entity'}, 'located in time zone', 'UTC+01:00']]}
SELECT DISTINCT ?k WHERE { ?k property:shares_border_with resource:Piedmont . ?k property:located_in_time_zone resource:UTC+01:00 . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q677399
P47
Q15617994
USER
Do those ones share a border with Bad Kreuzen ?
(Q677399,P47,Q1256) (Q677399,P47,Q12745) (Q677399,P47,Q1263) (Q677399,P47,Q1210) (Q677399,P47,Q3125) (Q677399,P47,Q3131) (Q677399,P47,Q3139) (Q677399,P47,Q1222)
action is_in
entity prev_answer
action find
entity Q677399
relation P47
['Q677399', 'P47', 'Q1256'] ['Q677399', 'P47', 'Q12745'] ['Q677399', 'P47', 'Q1263'] ['Q677399', 'P47', 'Q1210'] ['Q677399', 'P47', 'Q3125'] ['Q677399', 'P47', 'Q3131'] ['Q677399', 'P47', 'Q3139'] ['Q677399', 'P47', 'Q1222']
ASK WHERE { resource:Q677399 property:P47 ?c . VALUES ( ?c ) { ( resource:Q1256 ) ( resource:Q12745 ) ( resource:Q1263 ) } }
Bad Kreuzen
action is_in
entity prev_answer
action find
entity Bad Kreuzen
relation shares border with
['Bad Kreuzen', 'shares border with', 'Liguria'] ['Bad Kreuzen', 'shares border with', 'Savoie'] ['Bad Kreuzen', 'shares border with', 'Emilia-Romagna'] ['Bad Kreuzen', 'shares border with', 'Lombardy'] ['Bad Kreuzen', 'shares border with', 'Hautes-Alpes'] ['Bad Kreuzen', 'shares border with', 'Alpes-de-Haute-Provence'] ['Bad Kreuzen', 'shares border with', 'Alpes-Maritimes'] ['Bad Kreuzen', 'shares border with', 'Aosta Valley']
ASK WHERE { resource:Bad_Kreuzen property:shares_border_with ?c . VALUES ( ?c ) { ( resource:Liguria ) ( resource:Savoie ) ( resource:Emilia-Romagna ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q677399,P47,Q1256) (Q677399,P47,Q12745) (Q677399,P47,Q1263) (Q677399,P47,Q1210) (Q677399,P47,Q3125) (Q677399,P47,Q3131) (Q677399,P47,Q3139) (Q677399,P47,Q1222)
action is_in
entity prev_answer
action find
entity Q677399
relation P47
[ANSWER]
['Q677399', 'P47', 'Q1256'] ['Q677399', 'P47', 'Q12745'] ['Q677399', 'P47', 'Q1263'] ['Q677399', 'P47', 'Q1210'] ['Q677399', 'P47', 'Q3125'] ['Q677399', 'P47', 'Q3131'] ['Q677399', 'P47', 'Q3139'] ['Q677399', 'P47', 'Q1222']
ASK WHERE { resource:Q677399 property:P47 ?c . VALUES ( ?c ) { ( resource:Q1256 ) ( resource:Q12745 ) ( resource:Q1263 ) } }
No
action is_in
entity prev_answer
action find
entity Bad Kreuzen
relation shares border with
['Bad Kreuzen', 'shares border with', 'Liguria'] ['Bad Kreuzen', 'shares border with', 'Savoie'] ['Bad Kreuzen', 'shares border with', 'Emilia-Romagna'] ['Bad Kreuzen', 'shares border with', 'Lombardy'] ['Bad Kreuzen', 'shares border with', 'Hautes-Alpes'] ['Bad Kreuzen', 'shares border with', 'Alpes-de-Haute-Provence'] ['Bad Kreuzen', 'shares border with', 'Alpes-Maritimes'] ['Bad Kreuzen', 'shares border with', 'Aosta Valley']
ASK WHERE { resource:Bad_Kreuzen property:shares_border_with ?c . VALUES ( ?c ) { ( resource:Liguria ) ( resource:Savoie ) ( resource:Emilia-Romagna ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1326286 Q1210
P1376
Q56061
USER
Which administrative territories are the county seat for Lombardy or Babayevsky District ?
OR((c(Q56061),P1376,Q1210), (c(Q56061),P1376,Q1326286))
action filter_type
action union
action find_reverse
entity Q1210
relation P1376
action find_reverse
entity Q1326286
relation P1376
type Q56061
{'OR': [[{'concept': 'Q56061'}, 'P1376', 'Q1210'], [{'concept': 'Q56061'}, 'P1376', 'Q1326286']]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . { VALUES ( ?z ) { ( resource:Q1210 ) ( resource:Q1326286 ) } . ?q property:P1376 ?z } }
Babayevsky District Lombardy
action filter_type
action union
action find_reverse
entity Lombardy
relation capital of
action find_reverse
entity Babayevsky District
relation capital of
type administrative territorial entity
{'OR': [[{'concept': 'administrative territorial entity'}, 'capital of', 'Lombardy'], [{'concept': 'administrative territorial entity'}, 'capital of', 'Babayevsky District']]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . { VALUES ( ?z ) { ( resource:Lombardy ) ( resource:Babayevsky_District ) } . ?q property:capital_of ?z } }
[]
administrative territorial entity
Q490 Q104278
SYSTEM
Milan, Babayevo (town), Vologda Oblast
Q490 Q104278
OR((c(Q56061),P1376,Q1210), (c(Q56061),P1376,Q1326286))
action filter_type
action union
action find_reverse
entity Q1210
relation P1376
action find_reverse
entity Q1326286
relation P1376
type Q56061
[ANSWERS]
{'OR': [[{'concept': 'Q56061'}, 'P1376', 'Q1210'], [{'concept': 'Q56061'}, 'P1376', 'Q1326286']]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . { VALUES ( ?z ) { ( resource:Q1210 ) ( resource:Q1326286 ) } . ?q property:P1376 ?z } }
Milan Babayevo (town), Vologda Oblast
Milan and Babayevo (town), Vologda Oblast are the county seat for Lombardy or Babayevsky District
Milan Babayevo (town), Vologda Oblast
action filter_type
action union
action find_reverse
entity Lombardy
relation capital of
action find_reverse
entity Babayevsky District
relation capital of
type administrative territorial entity
{'OR': [[{'concept': 'administrative territorial entity'}, 'capital of', 'Lombardy'], [{'concept': 'administrative territorial entity'}, 'capital of', 'Babayevsky District']]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . { VALUES ( ?z ) { ( resource:Lombardy ) ( resource:Babayevsky_District ) } . ?q property:capital_of ?z } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q16010995 Q1256
P27 P17
Q15617994
USER
Which administrative territories are Liguria located in or are James C. Nance a civilian of ?
OR((Q1256,P17,c(Q15617994)), (Q16010995,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1256
relation P17
action find
entity Q16010995
relation P27
type Q15617994
{'OR': [['Q1256', 'P17', {'concept': 'Q15617994'}], ['Q16010995', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . { { resource:Q1256 property:P17 ?k } UNION { resource:Q16010995 property:P27 ?k } } }
James C. Nance Liguria
action filter_type
action union
action find
entity Liguria
relation country
action find
entity James C. Nance
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Liguria', 'country', {'concept': 'designation for an administrative territorial entity'}], ['James C. Nance', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Liguria property:country ?k } UNION { resource:James_C._Nance property:country_of_citizenship ?k } } }
[]
designation for an administrative territorial entity
Q38 Q30
SYSTEM
Italy, United States of America
Q38 Q30
OR((Q1256,P17,c(Q15617994)), (Q16010995,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1256
relation P17
action find
entity Q16010995
relation P27
type Q15617994
Liguria are located in [ANSWERS] or are James C. Nance a civilian of
{'OR': [['Q1256', 'P17', {'concept': 'Q15617994'}], ['Q16010995', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . { { resource:Q1256 property:P17 ?k } UNION { resource:Q16010995 property:P27 ?k } } }
Italy United States of America
Liguria are located in Italy and United States of America or are James C. Nance a civilian of
Italy United States of America
action filter_type
action union
action find
entity Liguria
relation country
action find
entity James C. Nance
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Liguria', 'country', {'concept': 'designation for an administrative territorial entity'}], ['James C. Nance', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Liguria property:country ?k } UNION { resource:James_C._Nance property:country_of_citizenship ?k } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q125494
P495
Q838948
USER
Did Bread and Roses originate in those administrative territories ?
(Q125494,P495,Q38) (Q125494,P495,Q30)
action is_in
entity prev_answer
action find
entity Q125494
relation P495
['Q125494', 'P495', 'Q38'] ['Q125494', 'P495', 'Q30']
ASK WHERE { VALUES ( ?a ) { ( resource:Q38 ) ( resource:Q30 ) } . resource:Q125494 property:P495 ?a }
Bread and Roses
action is_in
entity prev_answer
action find
entity Bread and Roses
relation country of origin
['Bread and Roses', 'country of origin', 'Italy'] ['Bread and Roses', 'country of origin', 'United States of America']
ASK WHERE { VALUES ( ?a ) { ( resource:Italy ) ( resource:United_States_of_America ) } . resource:Bread_and_Roses property:country_of_origin ?a }
[]
work of art
SYSTEM
YES
(Q125494,P495,Q38) (Q125494,P495,Q30)
action is_in
entity prev_answer
action find
entity Q125494
relation P495
[ANSWER]
['Q125494', 'P495', 'Q38'] ['Q125494', 'P495', 'Q30']
ASK WHERE { VALUES ( ?a ) { ( resource:Q38 ) ( resource:Q30 ) } . resource:Q125494 property:P495 ?a }
Yes
action is_in
entity prev_answer
action find
entity Bread and Roses
relation country of origin
['Bread and Roses', 'country of origin', 'Italy'] ['Bread and Roses', 'country of origin', 'United States of America']
ASK WHERE { VALUES ( ?a ) { ( resource:Italy ) ( resource:United_States_of_America ) } . resource:Bread_and_Roses property:country_of_origin ?a }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q690219
P206
Q337567 Q1267889 Q15617994
USER
How many administrative territories are situated in the neighbourhood of less number of still waterss and waterways than Perlin ?
(c(Q15617994),P206,c(Q337567)|c(Q1267889))
action count
action less
action union
action find_tuple_counts
relation P206
type Q15617994
type Q337567
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action count
action filter_multi_types
action find
entity Q690219
relation P206
type Q337567
type Q1267889
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?a ) WHERE { VALUES ( ?v ) { ( ontology:Q1267889 ) ( ontology:Q337567 ) } . ?t rdf:type ?v } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { VALUES ( ?u ) { ( ontology:Q1267889 ) ( ontology:Q337567 ) } . ?n rdf:type ?u } . resource:Q690219 property:P206 ?n } } . FILTER ( ?a < ?i ) }
Perlin
action count
action less
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action count
action filter_multi_types
action find
entity Perlin
relation located next to body of water
type still waters
type waterway
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?a ) WHERE { VALUES ( ?v ) { ( ontology:waterway ) ( ontology:still_waters ) } . ?t rdf:type ?v } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { VALUES ( ?u ) { ( ontology:waterway ) ( ontology:still_waters ) } . ?n rdf:type ?u } . resource:Perlin property:located_next_to_body_of_water ?n } } . FILTER ( ?a < ?i ) }
[]
still waters waterway designation for an administrative territorial entity
SYSTEM
118
Q21111 Q505785 Q446425 Q3066319 Q31872 Q668 Q525879 Q572949 Q267993 Q525864 Q55 Q801 Q487328 Q1604782 Q241358 Q2316529 Q525945 Q14859 Q508863 Q568926 Q1650693 Q1009384 Q657 Q214 Q622487 Q4628 Q503693 Q4391124 Q884 Q528579 Q493924 Q555609 Q161258 Q491751 Q10903 Q11343 Q263451 Q442666 Q14825 Q3111694 Q532046 Q7496670 Q307508 Q36 Q38 Q6685 Q3352704 Q252772 Q769680 Q519663 Q2360428 Q255698 Q236 Q1984541 Q560870 Q20 Q621469 Q28 Q29 Q3088406 Q917406 Q511806 Q548982 Q3038 Q225 Q224 Q222 Q14889 Q229 Q347 Q17 Q338094 Q3939 Q1577 Q525889 Q622456 Q154322 Q509998 Q539787 Q7042 Q525900 Q516567 Q507258 Q213 Q547059 Q215 Q269010 Q262684 Q573230 Q1604772 Q3923 Q174307 Q522992 Q1009 Q1438 Q522677 Q257859 Q252320 Q251778 Q895413 Q53742 Q567984 Q526087 Q1604766 Q7561974 Q948 Q2758 Q1974 Q573454 Q509536 Q4077862 Q1984544 Q494305 Q304745 Q542837 Q12056 Q4149191 Q7942378
(c(Q15617994),P206,c(Q337567)|c(Q1267889))
action count
action less
action union
action find_tuple_counts
relation P206
type Q15617994
type Q337567
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action count
action filter_multi_types
action find
entity Q690219
relation P206
type Q337567
type Q1267889
[ANSWER]
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?a ) WHERE { VALUES ( ?v ) { ( ontology:Q1267889 ) ( ontology:Q337567 ) } . ?t rdf:type ?v } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { VALUES ( ?u ) { ( ontology:Q1267889 ) ( ontology:Q337567 ) } . ?n rdf:type ?u } . resource:Q690219 property:P206 ?n } } . FILTER ( ?a < ?i ) }
Corn Islands Pförring Altwarp Fala-Beguets Moosburg an der Isar India Haundorf Solnhofen Muhr am See Höttingen Netherlands Israel Marktl Ulul Schleiden Noordpolderzijl Pfofeld Ansbach Mindelstetten Maasholm Niamey III Weno Chad Slovakia Päwesin Faroe Islands Riedenburg Rakhlitsy South Korea Wörth an der Isar Pasewalk Magdala Clipperton Island Pfatter Finnentrop Wetter (Ruhr) Oberdolling Altmannstein Memmingen Gouraya, Tipaza Fischen Shillingford Yepifan Poland Italy Dorfhain Oneop Eichstätt Bornholm Kösching Tijuana Municipality Abensberg Montenegro Niamey II Owschlag Norway Wennigsen Hungary Spain Front de Seine Niamey V North Slope Borough Heidenheim Helgoland Bosnia and Herzegovina Croatia Albania Schwabach Cyprus Liechtenstein Japan Polsingen Dinslaken Neuwerk Westheim Lage South Bank Wellheim Markt Berolzheim Amberg Meinheim Kappeln Kipfenberg Czech Republic Gnotzheim Slovenia Neustadt an der Donau Füssen Beilngries Moch Bayreuth Essing Braunlage Cameroon Campania Nassenfels Cham Pleinfeld Vohburg Bowen Island Donauwörth Woleai Nennslingen Pisaras Sonning Eye Tunisia Mönchengladbach British Columbia Hedersleben Landau an der Isar Baranovskiy Niamey I Kelheim Niamey IV Ettenstatt Oschatz Grigorovo Voxna
118
action count
action less
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action count
action filter_multi_types
action find
entity Perlin
relation located next to body of water
type still waters
type waterway
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?a ) WHERE { VALUES ( ?v ) { ( ontology:waterway ) ( ontology:still_waters ) } . ?t rdf:type ?v } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { VALUES ( ?u ) { ( ontology:waterway ) ( ontology:still_waters ) } . ?n rdf:type ?u } . resource:Perlin property:located_next_to_body_of_water ?n } } . FILTER ( ?a < ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q681329
P206
Q337567 Q1267889 Q15617994
USER
And how about Dümmer?
(c(Q15617994),P206,c(Q337567)|c(Q1267889))
action count
action less
action union
action find_tuple_counts
relation P206
type Q15617994
type Q337567
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action count
action filter_multi_types
action find
entity Q681329
relation P206
type Q337567
type Q1267889
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) ?o WHERE { { ?o property:P206 ?h . ?o rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q337567 } UNION { ?o property:P206 ?h . ?o rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q1267889 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { resource:Q681329 property:P206 ?x . { { ?x rdf:type ontology:Q337567 } UNION { ?x rdf:type ontology:Q1267889 } } } } . FILTER ( ?d < ?y ) }
Dümmer
action count
action less
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action count
action filter_multi_types
action find
entity Dümmer
relation located next to body of water
type still waters
type waterway
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) ?o WHERE { { ?o property:located_next_to_body_of_water ?h . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:still_waters } UNION { ?o property:located_next_to_body_of_water ?h . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:waterway } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { resource:Dümmer property:located_next_to_body_of_water ?x . { { ?x rdf:type ontology:still_waters } UNION { ?x rdf:type ontology:waterway } } } } . FILTER ( ?d < ?y ) }
[]
still waters waterway designation for an administrative territorial entity
SYSTEM
118
Q21111 Q505785 Q446425 Q3066319 Q31872 Q668 Q525879 Q572949 Q267993 Q525864 Q55 Q801 Q487328 Q1604782 Q241358 Q2316529 Q525945 Q14859 Q508863 Q568926 Q1650693 Q1009384 Q657 Q214 Q622487 Q4628 Q503693 Q4391124 Q884 Q528579 Q493924 Q555609 Q161258 Q491751 Q10903 Q11343 Q263451 Q442666 Q14825 Q3111694 Q532046 Q7496670 Q307508 Q36 Q38 Q6685 Q3352704 Q252772 Q769680 Q519663 Q2360428 Q255698 Q236 Q1984541 Q560870 Q20 Q621469 Q28 Q29 Q3088406 Q917406 Q511806 Q548982 Q3038 Q225 Q224 Q222 Q14889 Q229 Q347 Q17 Q338094 Q3939 Q1577 Q525889 Q622456 Q154322 Q509998 Q539787 Q7042 Q525900 Q516567 Q507258 Q213 Q547059 Q215 Q269010 Q262684 Q573230 Q1604772 Q3923 Q174307 Q522992 Q1009 Q1438 Q522677 Q257859 Q252320 Q251778 Q895413 Q53742 Q567984 Q526087 Q1604766 Q7561974 Q948 Q2758 Q1974 Q573454 Q509536 Q4077862 Q1984544 Q494305 Q304745 Q542837 Q12056 Q4149191 Q7942378
(c(Q15617994),P206,c(Q337567)|c(Q1267889))
action count
action less
action union
action find_tuple_counts
relation P206
type Q15617994
type Q337567
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action count
action filter_multi_types
action find
entity Q681329
relation P206
type Q337567
type Q1267889
[ANSWER]
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) ?o WHERE { { ?o property:P206 ?h . ?o rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q337567 } UNION { ?o property:P206 ?h . ?o rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q1267889 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { resource:Q681329 property:P206 ?x . { { ?x rdf:type ontology:Q337567 } UNION { ?x rdf:type ontology:Q1267889 } } } } . FILTER ( ?d < ?y ) }
Corn Islands Pförring Altwarp Fala-Beguets Moosburg an der Isar India Haundorf Solnhofen Muhr am See Höttingen Netherlands Israel Marktl Ulul Schleiden Noordpolderzijl Pfofeld Ansbach Mindelstetten Maasholm Niamey III Weno Chad Slovakia Päwesin Faroe Islands Riedenburg Rakhlitsy South Korea Wörth an der Isar Pasewalk Magdala Clipperton Island Pfatter Finnentrop Wetter (Ruhr) Oberdolling Altmannstein Memmingen Gouraya, Tipaza Fischen Shillingford Yepifan Poland Italy Dorfhain Oneop Eichstätt Bornholm Kösching Tijuana Municipality Abensberg Montenegro Niamey II Owschlag Norway Wennigsen Hungary Spain Front de Seine Niamey V North Slope Borough Heidenheim Helgoland Bosnia and Herzegovina Croatia Albania Schwabach Cyprus Liechtenstein Japan Polsingen Dinslaken Neuwerk Westheim Lage South Bank Wellheim Markt Berolzheim Amberg Meinheim Kappeln Kipfenberg Czech Republic Gnotzheim Slovenia Neustadt an der Donau Füssen Beilngries Moch Bayreuth Essing Braunlage Cameroon Campania Nassenfels Cham Pleinfeld Vohburg Bowen Island Donauwörth Woleai Nennslingen Pisaras Sonning Eye Tunisia Mönchengladbach British Columbia Hedersleben Landau an der Isar Baranovskiy Niamey I Kelheim Niamey IV Ettenstatt Oschatz Grigorovo Voxna
118
action count
action less
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action count
action filter_multi_types
action find
entity Dümmer
relation located next to body of water
type still waters
type waterway
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) ?o WHERE { { ?o property:located_next_to_body_of_water ?h . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:still_waters } UNION { ?o property:located_next_to_body_of_water ?h . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:waterway } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { resource:Dümmer property:located_next_to_body_of_water ?x . { { ?x rdf:type ontology:still_waters } UNION { ?x rdf:type ontology:waterway } } } } . FILTER ( ?d < ?y ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1222
P194
Q11204
USER
Which legislature is the legislative body for Aosta Valley ?
(Q1222,P194,c(Q11204))
action filter_type
action find
entity Q1222
relation P194
type Q11204
['Q1222', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?p WHERE { resource:Q1222 property:P194 ?p . ?p rdf:type ontology:Q11204 }
Aosta Valley
action filter_type
action find
entity Aosta Valley
relation legislative body
type legislature
['Aosta Valley', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?p WHERE { resource:Aosta_Valley property:legislative_body ?p . ?p rdf:type ontology:legislature }
[]
legislature
Q2993782
SYSTEM
Regional Council of the Aosta Valley
Q2993782
(Q1222,P194,c(Q11204))
action filter_type
action find
entity Q1222
relation P194
type Q11204
[ANSWER] is the legislative body for Aosta Valley
['Q1222', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?p WHERE { resource:Q1222 property:P194 ?p . ?p rdf:type ontology:Q11204 }
Regional Council of the Aosta Valley
Regional Council of the Aosta Valley is the legislative body for Aosta Valley
Regional Council of the Aosta Valley
action filter_type
action find
entity Aosta Valley
relation legislative body
type legislature
['Aosta Valley', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?p WHERE { resource:Aosta_Valley property:legislative_body ?p . ?p rdf:type ontology:legislature }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1210
P36
Q56061
USER
Which administrative territory is called the capital of Lombardy ?
(Q1210,P36,c(Q56061))
action filter_type
action find
entity Q1210
relation P36
type Q56061
['Q1210', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q1210 property:P36 ?f . ?f rdf:type ontology:Q56061 }
Lombardy
action filter_type
action find
entity Lombardy
relation capital
type administrative territorial entity
['Lombardy', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Lombardy property:capital ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q490
SYSTEM
Milan
Q490
(Q1210,P36,c(Q56061))
action filter_type
action find
entity Q1210
relation P36
type Q56061
[ANSWER] is called the capital of Lombardy
['Q1210', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q1210 property:P36 ?f . ?f rdf:type ontology:Q56061 }
Milan
Milan is called the capital of Lombardy
Milan
action filter_type
action find
entity Lombardy
relation capital
type administrative territorial entity
['Lombardy', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Lombardy property:capital ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q490 Q4662839
P190
Q56061
USER
Is Aazhigudi twin city of that one ?
(Q490,P190,Q4662839)
action is_in
entity Q4662839
action find
entity Q490
relation P190
['Q490', 'P190', 'Q4662839']
ASK WHERE { resource:Q490 property:P190 resource:Q4662839 }
Milan Aazhigudi
action is_in
entity Aazhigudi
action find
entity Milan
relation sister city
['Milan', 'sister city', 'Aazhigudi']
ASK WHERE { resource:Milan property:sister_city resource:Aazhigudi }
[]
administrative territorial entity
SYSTEM
NO
(Q490,P190,Q4662839)
action is_in
entity Q4662839
action find
entity Q490
relation P190
[ANSWER]
['Q490', 'P190', 'Q4662839']
ASK WHERE { resource:Q490 property:P190 resource:Q4662839 }
No
action is_in
entity Aazhigudi
action find
entity Milan
relation sister city
['Milan', 'sister city', 'Aazhigudi']
ASK WHERE { resource:Milan property:sister_city resource:Aazhigudi }
[]