Simple Question (Direct)
Simple Question
Q3072297
P102
Q7210356
USER
Which party does James Hope, 1st Baron Rankeillour belong to ?
(Q3072297,P102,c(Q7210356))
action filter_type
action find
entity Q3072297
relation P102
type Q7210356
['Q3072297', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?f WHERE { resource:Q3072297 property:P102 ?f . ?f rdf:type ontology:Q7210356 }
James Hope, 1st Baron Rankeillour
action filter_type
action find
entity James Hope, 1st Baron Rankeillour
relation member of political party
type political organization
['James Hope, 1st Baron Rankeillour', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?f WHERE { resource:James_Hope,_1st_Baron_Rankeillour property:member_of_political_party ?f . ?f rdf:type ontology:political_organization }
[]
political organization
Q9626
SYSTEM
Conservative Party
Q9626
(Q3072297,P102,c(Q7210356))
action filter_type
action find
entity Q3072297
relation P102
type Q7210356
James Hope , 1st Baron Rankeillour belongs to the [ANSWER]
['Q3072297', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?f WHERE { resource:Q3072297 property:P102 ?f . ?f rdf:type ontology:Q7210356 }
Conservative Party
James Hope , 1st Baron Rankeillour belongs to the Conservative Party
Conservative Party
action filter_type
action find
entity James Hope, 1st Baron Rankeillour
relation member of political party
type political organization
['James Hope, 1st Baron Rankeillour', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?f WHERE { resource:James_Hope,_1st_Baron_Rankeillour property:member_of_political_party ?f . ?f rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3072297
P937
Q56061
USER
Which is the work location of that person ?
(Q9626,P937,c(Q56061))
action filter_type
action find
entity Q3072297
relation P937
type Q56061
['Q9626', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q3072297 property:P937 ?a }
James Hope, 1st Baron Rankeillour
action filter_type
action find
entity James Hope, 1st Baron Rankeillour
relation work location
type administrative territorial entity
['Conservative Party', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:James_Hope,_1st_Baron_Rankeillour property:work_location ?a }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q9626,P937,c(Q56061))
action filter_type
action find
entity Q3072297
relation P937
type Q56061
The work location of that person is in [ANSWER]
['Q9626', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q3072297 property:P937 ?a }
London
The work location of that person is in London
London
action filter_type
action find
entity James Hope, 1st Baron Rankeillour
relation work location
type administrative territorial entity
['Conservative Party', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:James_Hope,_1st_Baron_Rankeillour property:work_location ?a }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3072297
P1412
Q34770
USER
Which language is James Hope, 1st Baron Rankeillour capable of writing ?
(Q3072297,P1412,c(Q34770))
action filter_type
action find
entity Q3072297
relation P1412
type Q34770
['Q3072297', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q3072297 property:P1412 ?a . ?a rdf:type ontology:Q34770 }
James Hope, 1st Baron Rankeillour
action filter_type
action find
entity James Hope, 1st Baron Rankeillour
relation languages spoken, written or signed
type language
['James Hope, 1st Baron Rankeillour', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:James_Hope,_1st_Baron_Rankeillour property:languages_spoken,_written_or_signed ?a . ?a rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q3072297,P1412,c(Q34770))
action filter_type
action find
entity Q3072297
relation P1412
type Q34770
[ANSWER] is James Hope, 1st Baron Rankeillour capable of writing
['Q3072297', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q3072297 property:P1412 ?a . ?a rdf:type ontology:Q34770 }
English
English is James Hope, 1st Baron Rankeillour capable of writing
English
action filter_type
action find
entity James Hope, 1st Baron Rankeillour
relation languages spoken, written or signed
type language
['James Hope, 1st Baron Rankeillour', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:James_Hope,_1st_Baron_Rankeillour property:languages_spoken,_written_or_signed ?a . ?a rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q19257210
Q34770
USER
And also tell me about Carles Pellicer i Boulanger?
(Q19257210,P1412,c(Q34770))
action filter_type
action find
entity Q19257210
relation P1412
type Q34770
['Q19257210', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { resource:Q19257210 property:P1412 ?j . ?j rdf:type ontology:Q34770 }
Carles Pellicer i Boulanger
action filter_type
action find
entity Carles Pellicer i Boulanger
relation languages spoken, written or signed
type language
['Carles Pellicer i Boulanger', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { resource:Carles_Pellicer_i_Boulanger property:languages_spoken,_written_or_signed ?j . ?j rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q19257210,P1412,c(Q34770))
action filter_type
action find
entity Q19257210
relation P1412
type Q34770
[ANSWER]
['Q19257210', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { resource:Q19257210 property:P1412 ?j . ?j rdf:type ontology:Q34770 }
Spanish
Spanish
action filter_type
action find
entity Carles Pellicer i Boulanger
relation languages spoken, written or signed
type language
['Carles Pellicer i Boulanger', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { resource:Carles_Pellicer_i_Boulanger property:languages_spoken,_written_or_signed ?j . ?j rdf:type ontology:language }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q133343 Q1860
P361
Q5962346
USER
Which classification schemes are English or Hathor a portion of ?
OR((Q1860,P361,c(Q5962346)), (Q133343,P361,c(Q5962346)))
action filter_type
action union
action find
entity Q1860
relation P361
action find
entity Q133343
relation P361
type Q5962346
{'OR': [['Q1860', 'P361', {'concept': 'Q5962346'}], ['Q133343', 'P361', {'concept': 'Q5962346'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1860 property:P361 ?s } UNION { resource:Q133343 property:P361 ?s } } . ?s rdf:type ontology:Q5962346 }
Hathor English
action filter_type
action union
action find
entity English
relation part of
action find
entity Hathor
relation part of
type classification scheme
{'OR': [['English', 'part of', {'concept': 'classification scheme'}], ['Hathor', 'part of', {'concept': 'classification scheme'}]]}
SELECT DISTINCT ?s WHERE { { { resource:English property:part_of ?s } UNION { resource:Hathor property:part_of ?s } } . ?s rdf:type ontology:classification_scheme }
[]
classification scheme
Q1346342 Q205740 Q5329170
SYSTEM
Anglic languages, Egyptian mythology, Anglo-Frisian languages
Q1346342 Q205740 Q5329170
OR((Q1860,P361,c(Q5962346)), (Q133343,P361,c(Q5962346)))
action filter_type
action union
action find
entity Q1860
relation P361
action find
entity Q133343
relation P361
type Q5962346
The [ANSWERS] are English or Hathor a portion of
{'OR': [['Q1860', 'P361', {'concept': 'Q5962346'}], ['Q133343', 'P361', {'concept': 'Q5962346'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1860 property:P361 ?s } UNION { resource:Q133343 property:P361 ?s } } . ?s rdf:type ontology:Q5962346 }
Anglic languages Egyptian mythology Anglo-Frisian languages
The Anglic languages, Egyptian mythology and Anglo-Frisian languages are English or Hathor a portion of
Anglic languages Egyptian mythology Anglo-Frisian languages
action filter_type
action union
action find
entity English
relation part of
action find
entity Hathor
relation part of
type classification scheme
{'OR': [['English', 'part of', {'concept': 'classification scheme'}], ['Hathor', 'part of', {'concept': 'classification scheme'}]]}
SELECT DISTINCT ?s WHERE { { { resource:English property:part_of ?s } UNION { resource:Hathor property:part_of ?s } } . ?s rdf:type ontology:classification_scheme }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P361
Q5962346 Q1299240
USER
How many classification schemes are lesser number of interior spaces a part of than that classification scheme ?
(c(Q1299240),P361,c(Q5962346))
[{'concept': 'Q1299240'}, 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P361 ?y . ?z rdf:type ontology:Q1299240 . ?y rdf:type ontology:Q5962346 }
[{'concept': 'interior space'}, 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:part_of ?y . ?z rdf:type ontology:interior_space . ?y rdf:type ontology:classification_scheme }
[]
classification scheme interior space
Comparative|Count over More/Less|Single entity type|Clarification
Q5329170
SYSTEM
Did you mean Anglo-Frisian languages ?
(c(Q1299240),P361,c(Q5962346))
[ANSWER]
[{'concept': 'Q1299240'}, 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P361 ?y . ?z rdf:type ontology:Q1299240 . ?y rdf:type ontology:Q5962346 }
Did you mean Anglo-Frisian languages ?
Anglo-Frisian languages
[{'concept': 'interior space'}, 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:part_of ?y . ?z rdf:type ontology:interior_space . ?y rdf:type ontology:classification_scheme }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Egyptian mythology. Could you tell me the answer for that?
(c(Q1299240),P361,c(Q5962346))
Q205740
[{'concept': 'Q1299240'}, 'P361', {'concept': 'Q5962346'}]
[{'concept': 'interior space'}, 'part of', {'concept': 'classification scheme'}]
[]
SYSTEM
0
(c(Q1299240),P361,c(Q5962346))
[ANSWER]
[{'concept': 'Q1299240'}, 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P361 ?y . ?z rdf:type ontology:Q1299240 . ?y rdf:type ontology:Q5962346 }
0
[{'concept': 'interior space'}, 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:part_of ?y . ?z rdf:type ontology:interior_space . ?y rdf:type ontology:classification_scheme }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q244207
P417
Q502895 Q1445650 Q56061
USER
Which administrative territories have approximately the same number of people or holidays as their patron saint as Campione d'Italia ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action approx
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q244207
relation P417
type Q502895
type Q1445650
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?f WHERE { { ?f property:P417 ?i . ?f rdf:type ontology:Q56061 . ?i rdf:type ontology:Q502895 } UNION { ?f rdf:type ontology:Q56061 . ?i rdf:type ontology:Q1445650 . ?f property:P417 ?i } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { resource:Q244207 property:P417 ?y . { ?y rdf:type ?s . VALUES ( ?s ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } } } . FILTER ( ?k = ?a ) }
Campione d'Italia
action approx
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Campione d'Italia
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?f WHERE { { ?f property:patron_saint ?i . ?f rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:common_name } UNION { ?f rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:holiday . ?f property:patron_saint ?i } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { resource:Campione_d'Italia property:patron_saint ?y . { ?y rdf:type ?s . VALUES ( ?s ) { ( ontology:common_name ) ( ontology:holiday ) } } } } . FILTER ( ?k = ?a ) }
[]
common name holiday administrative territorial entity
Q649 Q2807 Q490
SYSTEM
Moscow, Madrid, Milan
Q5818 Q187352 Q11974 Q40801 Q212841 Q454875 Q14209773 Q34111 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q2028 Q929022 Q641 Q46165 Q649 Q58463 Q491588 Q3395964 Q73489 Q53825 Q200908 Q15090 Q36647 Q13375 Q15088 Q10305 Q53265 Q6340 Q101229 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q495798 Q82208 Q3557616 Q374108 Q3562704 Q428018 Q90 Q431389 Q5991813 Q380189 Q617 Q470461 Q733574 Q932648 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q51400 Q504216 Q51315 Q210470 Q11959 Q52215 Q15095 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q15487 Q244207 Q1957 Q50074 Q1897 Q433066 Q46864
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action approx
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q244207
relation P417
type Q502895
type Q1445650
[ANSWERS] have approximately the same number of people or holidays as their patron saint as Campione d'Italia
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?f WHERE { { ?f property:P417 ?i . ?f rdf:type ontology:Q56061 . ?i rdf:type ontology:Q502895 } UNION { ?f rdf:type ontology:Q56061 . ?i rdf:type ontology:Q1445650 . ?f property:P417 ?i } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { resource:Q244207 property:P417 ?y . { ?y rdf:type ?s . VALUES ( ?s ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } } } . FILTER ( ?k = ?a ) }
Córdoba Kavala Las Palmas de Gran Canaria Borca di Cadore Drama Amarante Municipality San Lorenzo de' Picenardi Pozzallo Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Verona Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Camporeale Koufalia Camerino Altilia Rethymno Lleida Cork Pisa Tarragona Zaragoza Gemona del Friuli Castel Giorgio Martinengo Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brolo Kastritsa Platres Altrei Molista Mölten Paris Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Istiaia Didymoteicho Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Spoltore St. Martin in Passeier Villamagna Katerini Alicante Tuglie Albacete Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Berga Campione d'Italia Vologda Castellafiume Cagliari Moos in Passeier Arcugnano
Moscow, Madrid and Milan have approximately the same number of people or holidays as their patron saint as Campione d'Italia
Moscow Madrid Milan
action approx
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Campione d'Italia
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?f WHERE { { ?f property:patron_saint ?i . ?f rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:common_name } UNION { ?f rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:holiday . ?f property:patron_saint ?i } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { resource:Campione_d'Italia property:patron_saint ?y . { ?y rdf:type ?s . VALUES ( ?s ) { ( ontology:common_name ) ( ontology:holiday ) } } } } . FILTER ( ?k = ?a ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q133123
P417
Q502895 Q1445650 Q56061
USER
And what about Patras?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action approx
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q133123
relation P417
type Q502895
type Q1445650
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { ?h rdf:type ?f . VALUES ( ?f ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } . resource:Q133123 property:P417 ?h } } . FILTER ( ?x = ?j ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) ?r WHERE { ?l rdf:type ?o . VALUES ( ?o ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } GROUP BY ?r } }
Patras
action approx
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Patras
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { ?h rdf:type ?f . VALUES ( ?f ) { ( ontology:common_name ) ( ontology:holiday ) } } . resource:Patras property:patron_saint ?h } } . FILTER ( ?x = ?j ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) ?r WHERE { ?l rdf:type ?o . VALUES ( ?o ) { ( ontology:common_name ) ( ontology:holiday ) } } GROUP BY ?r } }
[]
common name holiday administrative territorial entity
Q649 Q2807 Q490
SYSTEM
Moscow, Madrid, Milan
Q5818 Q187352 Q11974 Q40801 Q212841 Q454875 Q14209773 Q34111 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q2028 Q929022 Q641 Q46165 Q649 Q58463 Q491588 Q3395964 Q73489 Q53825 Q200908 Q15090 Q36647 Q13375 Q15088 Q10305 Q53265 Q6340 Q101229 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q495798 Q82208 Q3557616 Q374108 Q3562704 Q428018 Q90 Q431389 Q5991813 Q380189 Q617 Q470461 Q733574 Q932648 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q51400 Q504216 Q51315 Q210470 Q11959 Q52215 Q15095 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q15487 Q244207 Q1957 Q50074 Q1897 Q433066 Q46864
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action approx
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q133123
relation P417
type Q502895
type Q1445650
[ANSWERS]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { ?h rdf:type ?f . VALUES ( ?f ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } . resource:Q133123 property:P417 ?h } } . FILTER ( ?x = ?j ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) ?r WHERE { ?l rdf:type ?o . VALUES ( ?o ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } GROUP BY ?r } }
Córdoba Kavala Las Palmas de Gran Canaria Borca di Cadore Drama Amarante Municipality San Lorenzo de' Picenardi Pozzallo Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Verona Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Camporeale Koufalia Camerino Altilia Rethymno Lleida Cork Pisa Tarragona Zaragoza Gemona del Friuli Castel Giorgio Martinengo Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brolo Kastritsa Platres Altrei Molista Mölten Paris Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Istiaia Didymoteicho Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Spoltore St. Martin in Passeier Villamagna Katerini Alicante Tuglie Albacete Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Berga Campione d'Italia Vologda Castellafiume Cagliari Moos in Passeier Arcugnano
Moscow Madrid Milan
action approx
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Patras
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { ?h rdf:type ?f . VALUES ( ?f ) { ( ontology:common_name ) ( ontology:holiday ) } } . resource:Patras property:patron_saint ?h } } . FILTER ( ?x = ?j ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) ?r WHERE { ?l rdf:type ?o . VALUES ( ?o ) { ( ontology:common_name ) ( ontology:holiday ) } } GROUP BY ?r } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q838654
P190
Q515
USER
Are Kitaibaraki partner town of those administrative territories ?
(Q838654,P190,Q649) (Q838654,P190,Q2807) (Q838654,P190,Q490)
action is_in
entity prev_answer
action find
entity Q838654
relation P190
['Q838654', 'P190', 'Q649'] ['Q838654', 'P190', 'Q2807'] ['Q838654', 'P190', 'Q490']
ASK WHERE { VALUES ( ?l ) { ( resource:Q5818 ) ( resource:Q187352 ) ( resource:Q11974 ) } . resource:Q838654 property:P190 ?l }
Kitaibaraki
action is_in
entity prev_answer
action find
entity Kitaibaraki
relation sister city
['Kitaibaraki', 'sister city', 'Moscow'] ['Kitaibaraki', 'sister city', 'Madrid'] ['Kitaibaraki', 'sister city', 'Milan']
ASK WHERE { VALUES ( ?l ) { ( resource:Córdoba ) ( resource:Kavala ) ( resource:Las_Palmas_de_Gran_Canaria ) } . resource:Kitaibaraki property:sister_city ?l }
[]
city
SYSTEM
NO
(Q838654,P190,Q649) (Q838654,P190,Q2807) (Q838654,P190,Q490)
action is_in
entity prev_answer
action find
entity Q838654
relation P190
[ANSWER]
['Q838654', 'P190', 'Q649'] ['Q838654', 'P190', 'Q2807'] ['Q838654', 'P190', 'Q490']
ASK WHERE { VALUES ( ?l ) { ( resource:Q5818 ) ( resource:Q187352 ) ( resource:Q11974 ) } . resource:Q838654 property:P190 ?l }
No
action is_in
entity prev_answer
action find
entity Kitaibaraki
relation sister city
['Kitaibaraki', 'sister city', 'Moscow'] ['Kitaibaraki', 'sister city', 'Madrid'] ['Kitaibaraki', 'sister city', 'Milan']
ASK WHERE { VALUES ( ?l ) { ( resource:Córdoba ) ( resource:Kavala ) ( resource:Las_Palmas_de_Gran_Canaria ) } . resource:Kitaibaraki property:sister_city ?l }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P282
Q8192 Q2001982 Q34770
USER
Which languages are max number of writing systems and notations the writing system of ?
(c(Q34770),P282,c(Q8192)|c(Q2001982))
action argmax
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q2001982
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?g WHERE { { ?g property:P282 ?p . ?g rdf:type ontology:Q34770 . ?p rdf:type ontology:Q8192 } UNION { ?g property:P282 ?p . ?p rdf:type ontology:Q2001982 . ?g rdf:type ontology:Q34770 } } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) ?q WHERE { { ?q rdf:type ontology:Q34770 . ?t rdf:type ontology:Q8192 . ?q property:P282 ?t } UNION { ?q property:P282 ?t . ?q rdf:type ontology:Q34770 . ?t rdf:type ontology:Q2001982 } } GROUP BY ?q } . FILTER ( ?r = ?v ) }
action argmax
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type notation
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'notation'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?g WHERE { { ?g property:writing_system ?p . ?g rdf:type ontology:language . ?p rdf:type ontology:writing_system } UNION { ?g property:writing_system ?p . ?p rdf:type ontology:notation . ?g rdf:type ontology:language } } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) ?q WHERE { { ?q rdf:type ontology:language . ?t rdf:type ontology:writing_system . ?q property:writing_system ?t } UNION { ?q property:writing_system ?t . ?q rdf:type ontology:language . ?t rdf:type ontology:notation } } GROUP BY ?q } . FILTER ( ?r = ?v ) }
[]
writing system notation language
Q182695
SYSTEM
Late Old Japanese
Q182695
(c(Q34770),P282,c(Q8192)|c(Q2001982))
action argmax
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q2001982
[ANSWER] is max number of writing systems and notations the writing system of
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?g WHERE { { ?g property:P282 ?p . ?g rdf:type ontology:Q34770 . ?p rdf:type ontology:Q8192 } UNION { ?g property:P282 ?p . ?p rdf:type ontology:Q2001982 . ?g rdf:type ontology:Q34770 } } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) ?q WHERE { { ?q rdf:type ontology:Q34770 . ?t rdf:type ontology:Q8192 . ?q property:P282 ?t } UNION { ?q property:P282 ?t . ?q rdf:type ontology:Q34770 . ?t rdf:type ontology:Q2001982 } } GROUP BY ?q } . FILTER ( ?r = ?v ) }
Late Old Japanese
Late Old Japanese is max number of writing systems and notations the writing system of
Late Old Japanese
action argmax
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type notation
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'notation'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?g WHERE { { ?g property:writing_system ?p . ?g rdf:type ontology:language . ?p rdf:type ontology:writing_system } UNION { ?g property:writing_system ?p . ?p rdf:type ontology:notation . ?g rdf:type ontology:language } } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) ?q WHERE { { ?q rdf:type ontology:language . ?t rdf:type ontology:writing_system . ?q property:writing_system ?t } UNION { ?q property:writing_system ?t . ?q rdf:type ontology:language . ?t rdf:type ontology:notation } } GROUP BY ?q } . FILTER ( ?r = ?v ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q792216
P282
Q9779 Q34770
USER
Which alphabets are the writing systems used for around the same number of languages as Belarusian alphabet ?
(c(Q34770),P282,c(Q9779))
action approx
action find_reverse_tuple_counts
relation P282
type Q9779
type Q34770
action count
action filter_type
action find
entity Q792216
relation P282
type Q9779
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { resource:Q792216 property:P282 ?q . ?q rdf:type ontology:Q9779 } } . FILTER ( ?a = ?x ) . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?a ) WHERE { ?p property:P282 ?d . ?d rdf:type ontology:Q9779 . ?p rdf:type ontology:Q34770 } GROUP BY ?d } }
Belarusian alphabet
action approx
action find_reverse_tuple_counts
relation writing system
type alphabet
type language
action count
action filter_type
action find
entity Belarusian alphabet
relation writing system
type alphabet
[{'concept': 'language'}, 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { resource:Belarusian_alphabet property:writing_system ?q . ?q rdf:type ontology:alphabet } } . FILTER ( ?a = ?x ) . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?a ) WHERE { ?p property:writing_system ?d . ?d rdf:type ontology:alphabet . ?p rdf:type ontology:language } GROUP BY ?d } }
[]
alphabet language
Q792216 Q13405127 Q540987
SYSTEM
Belarusian alphabet, Rusyn alphabet, Portuguese alphabet
Q164436 Q754989 Q792216 Q606972 Q187846 Q829464 Q13405127 Q550383 Q1937113 Q442244 Q2092163 Q540987 Q2712936 Q83942
(c(Q34770),P282,c(Q9779))
action approx
action find_reverse_tuple_counts
relation P282
type Q9779
type Q34770
action count
action filter_type
action find
entity Q792216
relation P282
type Q9779
[ANSWERS] are the writing systems used for around the same number of languages as Belarusian alphabet
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { resource:Q792216 property:P282 ?q . ?q rdf:type ontology:Q9779 } } . FILTER ( ?a = ?x ) . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?a ) WHERE { ?p property:P282 ?d . ?d rdf:type ontology:Q9779 . ?p rdf:type ontology:Q34770 } GROUP BY ?d } }
Bulgarian alphabet Gaj's Latin alphabet Belarusian alphabet Polish alphabet Russian alphabet Serbian Cyrillic alphabet Rusyn alphabet Italian alphabet futhark Early Cyrillic alphabet Macedonian alphabet Portuguese alphabet futhorc Jawi alphabet
Belarusian alphabet, Rusyn alphabet and Portuguese alphabet are the writing systems used for around the same number of languages as Belarusian alphabet
Belarusian alphabet Rusyn alphabet Portuguese alphabet
action approx
action find_reverse_tuple_counts
relation writing system
type alphabet
type language
action count
action filter_type
action find
entity Belarusian alphabet
relation writing system
type alphabet
[{'concept': 'language'}, 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { resource:Belarusian_alphabet property:writing_system ?q . ?q rdf:type ontology:alphabet } } . FILTER ( ?a = ?x ) . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?a ) WHERE { ?p property:writing_system ?d . ?d rdf:type ontology:alphabet . ?p rdf:type ontology:language } GROUP BY ?d } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q606972
P282
Q9779 Q34770
USER
And how about Polish alphabet?
(c(Q34770),P282,c(Q9779))
action approx
action find_reverse_tuple_counts
relation P282
type Q9779
type Q34770
action count
action filter_type
action find
entity Q606972
relation P282
type Q9779
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { resource:Q606972 property:P282 ?h . ?h rdf:type ontology:Q9779 } } . FILTER ( ?p = ?f ) . { SELECT DISTINCT ?v ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:P282 ?v . ?v rdf:type ontology:Q9779 . ?j rdf:type ontology:Q34770 } GROUP BY ?v } }
Polish alphabet
action approx
action find_reverse_tuple_counts
relation writing system
type alphabet
type language
action count
action filter_type
action find
entity Polish alphabet
relation writing system
type alphabet
[{'concept': 'language'}, 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { resource:Polish_alphabet property:writing_system ?h . ?h rdf:type ontology:alphabet } } . FILTER ( ?p = ?f ) . { SELECT DISTINCT ?v ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:writing_system ?v . ?v rdf:type ontology:alphabet . ?j rdf:type ontology:language } GROUP BY ?v } }
[]
alphabet language
Q792216 Q13405127 Q540987
SYSTEM
Belarusian alphabet, Rusyn alphabet, Portuguese alphabet
Q164436 Q754989 Q792216 Q606972 Q187846 Q829464 Q13405127 Q550383 Q1937113 Q442244 Q2092163 Q540987 Q2712936 Q83942
(c(Q34770),P282,c(Q9779))
action approx
action find_reverse_tuple_counts
relation P282
type Q9779
type Q34770
action count
action filter_type
action find
entity Q606972
relation P282
type Q9779
[ANSWERS]
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { resource:Q606972 property:P282 ?h . ?h rdf:type ontology:Q9779 } } . FILTER ( ?p = ?f ) . { SELECT DISTINCT ?v ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:P282 ?v . ?v rdf:type ontology:Q9779 . ?j rdf:type ontology:Q34770 } GROUP BY ?v } }
Bulgarian alphabet Gaj's Latin alphabet Belarusian alphabet Polish alphabet Russian alphabet Serbian Cyrillic alphabet Rusyn alphabet Italian alphabet futhark Early Cyrillic alphabet Macedonian alphabet Portuguese alphabet futhorc Jawi alphabet
Belarusian alphabet Rusyn alphabet Portuguese alphabet
action approx
action find_reverse_tuple_counts
relation writing system
type alphabet
type language
action count
action filter_type
action find
entity Polish alphabet
relation writing system
type alphabet
[{'concept': 'language'}, 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { resource:Polish_alphabet property:writing_system ?h . ?h rdf:type ontology:alphabet } } . FILTER ( ?p = ?f ) . { SELECT DISTINCT ?v ( COUNT ( ?j ) AS ?p ) WHERE { ?j property:writing_system ?v . ?v rdf:type ontology:alphabet . ?j rdf:type ontology:language } GROUP BY ?v } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q2705672
P282
Q9779 Q2001982 Q34770
USER
How many languages have writing system as around the same number of alphabets or notations as Paeonian language ?
(c(Q34770),P282,c(Q9779)|c(Q2001982))
action count
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action count
action filter_multi_types
action find
entity Q2705672
relation P282
type Q9779
type Q2001982
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?z ) WHERE { { ?b property:P282 ?i . ?b rdf:type ontology:Q34770 . ?i rdf:type ontology:Q2001982 } UNION { ?b rdf:type ontology:Q34770 . ?i rdf:type ontology:Q9779 . ?b property:P282 ?i } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { ?e rdf:type ?j . VALUES ( ?j ) { ( ontology:Q9779 ) ( ontology:Q2001982 ) } } . resource:Q2705672 property:P282 ?e } } . FILTER ( ?z = ?y ) }
Paeonian language
action count
action approx
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type notation
action count
action filter_multi_types
action find
entity Paeonian language
relation writing system
type alphabet
type notation
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'notation'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?z ) WHERE { { ?b property:writing_system ?i . ?b rdf:type ontology:language . ?i rdf:type ontology:notation } UNION { ?b rdf:type ontology:language . ?i rdf:type ontology:alphabet . ?b property:writing_system ?i } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { ?e rdf:type ?j . VALUES ( ?j ) { ( ontology:alphabet ) ( ontology:notation ) } } . resource:Paeonian_language property:writing_system ?e } } . FILTER ( ?z = ?y ) }
[]
alphabet notation language
SYSTEM
14
Q182695 Q35470 Q13211 Q35499 Q33251 Q21161942 Q1639124 Q2705672 Q36795 Q20972034 Q36790 Q36751 Q36464 Q652
(c(Q34770),P282,c(Q9779)|c(Q2001982))
action count
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action count
action filter_multi_types
action find
entity Q2705672
relation P282
type Q9779
type Q2001982
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?z ) WHERE { { ?b property:P282 ?i . ?b rdf:type ontology:Q34770 . ?i rdf:type ontology:Q2001982 } UNION { ?b rdf:type ontology:Q34770 . ?i rdf:type ontology:Q9779 . ?b property:P282 ?i } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { ?e rdf:type ?j . VALUES ( ?j ) { ( ontology:Q9779 ) ( ontology:Q2001982 ) } } . resource:Q2705672 property:P282 ?e } } . FILTER ( ?z = ?y ) }
Late Old Japanese Elamite language Ruthenian Old Church Slavonic Church Slavonic Serbian written in Cyrillic Slavoserbian Paeonian language Tartessian Classic Greek Sumerian Phrygian language Nivkh language Italian
14
action count
action approx
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type notation
action count
action filter_multi_types
action find
entity Paeonian language
relation writing system
type alphabet
type notation
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'notation'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?z ) WHERE { { ?b property:writing_system ?i . ?b rdf:type ontology:language . ?i rdf:type ontology:notation } UNION { ?b rdf:type ontology:language . ?i rdf:type ontology:alphabet . ?b property:writing_system ?i } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { ?e rdf:type ?j . VALUES ( ?j ) { ( ontology:alphabet ) ( ontology:notation ) } } . resource:Paeonian_language property:writing_system ?e } } . FILTER ( ?z = ?y ) }
[]