Simple Question (Direct)
Simple Question
Q13377
P190
Q56061
USER
Which administrative territories are partner towns of Prato ?
(Q13377,P190,c(Q56061))
action filter_type
action find
entity Q13377
relation P190
type Q56061
['Q13377', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q13377 property:P190 ?n . ?n rdf:type ontology:Q56061 }
Prato
action filter_type
action find
entity Prato
relation sister city
type administrative territorial entity
['Prato', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Prato property:sister_city ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q614754 Q165015 Q3921
SYSTEM
Bir Lehlou, Wangen im Allgäu, Harare
Q614754 Q165015 Q3921
(Q13377,P190,c(Q56061))
action filter_type
action find
entity Q13377
relation P190
type Q56061
[ANSWERS] are partner towns of Prato
['Q13377', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q13377 property:P190 ?n . ?n rdf:type ontology:Q56061 }
Bir Lehlou Wangen im Allgäu Harare
Bir Lehlou, Wangen im Allgäu and Harare are partner towns of Prato
Bir Lehlou Wangen im Allgäu Harare
action filter_type
action find
entity Prato
relation sister city
type administrative territorial entity
['Prato', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Prato property:sister_city ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q614754
P47
Q56061
USER
Which administrative territory is adjacent to that one ?
(Q614754,P47,c(Q56061))
action filter_type
action find
entity Q614754
relation P47
type Q56061
['Q614754', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q614754 property:P47 ?n . ?n rdf:type ontology:Q56061 }
Bir Lehlou
action filter_type
action find
entity Bir Lehlou
relation shares border with
type administrative territorial entity
['Bir Lehlou', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Bir_Lehlou property:shares_border_with ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q3921
SYSTEM
Did you mean Harare ?
Q614754 Q165015 Q3921
(Q614754,P47,c(Q56061)) (Q165015,P47,c(Q56061)) (Q3921,P47,c(Q56061))
[ANSWER]
['Q614754', 'P47', {'concept': 'Q56061'}] ['Q165015', 'P47', {'concept': 'Q56061'}] ['Q3921', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q614754 property:P47 ?n . ?n rdf:type ontology:Q56061 }
Bir Lehlou Wangen im Allgäu Harare
Did you mean Harare ?
Harare
['Bir Lehlou', 'shares border with', {'concept': 'administrative territorial entity'}] ['Wangen im Allgäu', 'shares border with', {'concept': 'administrative territorial entity'}] ['Harare', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Bir_Lehlou property:shares_border_with ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Bir Lehlou. Could you tell me the answer for that?
(Q614754,P47,c(Q56061))
Q614754
['Q614754', 'P47', {'concept': 'Q56061'}]
['Bir Lehlou', 'shares border with', {'concept': 'administrative territorial entity'}]
[]
Q1339225
SYSTEM
Farsia
Q1339225
(Q614754,P47,c(Q56061))
action filter_type
action find
entity Q614754
relation P47
type Q56061
[ANSWER] is adjacent to that one
['Q614754', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q614754 property:P47 ?n . ?n rdf:type ontology:Q56061 }
Farsia
Farsia is adjacent to that one
Farsia
action filter_type
action find
entity Bir Lehlou
relation shares border with
type administrative territorial entity
['Bir Lehlou', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Bir_Lehlou property:shares_border_with ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3502922 Q13377
P19
Q502895
USER
Which people have place of birth as Prato or Sudbury ?
OR((c(Q502895),P19,Q13377), (c(Q502895),P19,Q3502922))
action filter_type
action union
action find_reverse
entity Q13377
relation P19
action find_reverse
entity Q3502922
relation P19
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P19', 'Q13377'], [{'concept': 'Q502895'}, 'P19', 'Q3502922']]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?m ) { ( resource:Q3502922 ) ( resource:Q13377 ) } . ?v property:P19 ?m } . ?v rdf:type ontology:Q502895 }
Sudbury Prato
action filter_type
action union
action find_reverse
entity Prato
relation place of birth
action find_reverse
entity Sudbury
relation place of birth
type common name
{'OR': [[{'concept': 'common name'}, 'place of birth', 'Prato'], [{'concept': 'common name'}, 'place of birth', 'Sudbury']]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?m ) { ( resource:Sudbury ) ( resource:Prato ) } . ?v property:place_of_birth ?m } . ?v rdf:type ontology:common_name }
[]
common name
Q16575684 Q17453271 Q16268416 Q3939971 Q5479308 Q2258886 Q552843 Q1671578 Q3615799 Q3956178
SYSTEM
Some of them are Marcello Tofani, Fabrizio Mattei, Domenico Giunti, Ridolfo Livi, Francesco Coppini, Ighli Vannucchi, Luca Calvani, Sem Benelli, Andrea Lastrucci, Sergio Masieri
Q3742577 Q595338 Q3701272 Q23857355 Q23042165 Q3645629 Q3615816 Q20088868 Q3769013 Q6947473 Q204955 Q1671578 Q3955727 Q4124716 Q3851313 Q16581867 Q3771581 Q16039280 Q13419095 Q3697491 Q780021 Q3764635 Q2846325 Q3684958 Q16536834 Q16561232 Q3827018 Q15123552 Q3903250 Q1089038 Q3665445 Q2288167 Q17453271 Q590906 Q1631480 Q1246106 Q4008858 Q16268448 Q3939971 Q3081052 Q3108090 Q17651578 Q3763481 Q15921866 Q552843 Q3618922 Q3902867 Q3725612 Q323386 Q16525722 Q312637 Q4020012 Q3619759 Q387816 Q3027975 Q3956178 Q16575684 Q3617595 Q3951065 Q3769233 Q15403370 Q767973 Q2513437 Q1010696 Q26857611 Q1637061 Q3051065 Q3892865 Q3768485 Q15120189 Q3964757 Q3659524 Q1168587 Q3293404 Q434341 Q3732086 Q3525113 Q21190652 Q17453094 Q16573861 Q3617356 Q3839462 Q16487862 Q3960641 Q2926583 Q3846012 Q211048 Q21030410 Q178628 Q16527403 Q3770082 Q5659206 Q10364344 Q16292810 Q3954955 Q946948 Q3768431 Q450043 Q21328784 Q21207293 Q3838531 Q16577109 Q15950550 Q2832785 Q3848402 Q3766819 Q3615457 Q1537497 Q13427195 Q3907307 Q1533066 Q3107921 Q3846018 Q3830418 Q20005898 Q3759364 Q3615799 Q3846420 Q3885543 Q5479308 Q565220 Q440292 Q3592734 Q386491 Q3942495 Q3950328 Q3766041 Q19513369 Q1872762 Q2553411 Q17453061 Q3610054 Q598838 Q3337706 Q17284975 Q3938680 Q3903203 Q12884138 Q3810106 Q3618960 Q970069 Q3615990 Q26085429 Q3805925 Q21055390 Q296265 Q7469652 Q17562142 Q3852657 Q16066084 Q1490984 Q1357559 Q3119453 Q1320010 Q3851135 Q3852245 Q3938691 Q16555676 Q18287992 Q16268416 Q1056790 Q3804631 Q18534371 Q3770849 Q3770279 Q20140224 Q3832597 Q725993 Q3725624 Q574420 Q3939587 Q3617705 Q4008536 Q14855815 Q3776031 Q4934416 Q15622393 Q3608205 Q977281 Q3903275 Q3839967 Q16616236 Q2258886 Q16576433 Q15055577 Q3894200 Q134923 Q3938819
OR((c(Q502895),P19,Q13377), (c(Q502895),P19,Q3502922))
action filter_type
action union
action find_reverse
entity Q13377
relation P19
action find_reverse
entity Q3502922
relation P19
type Q502895
[ANSWERS] have place of birth as Prato or Sudbury
{'OR': [[{'concept': 'Q502895'}, 'P19', 'Q13377'], [{'concept': 'Q502895'}, 'P19', 'Q3502922']]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?m ) { ( resource:Q3502922 ) ( resource:Q13377 ) } . ?v property:P19 ?m } . ?v rdf:type ontology:Q502895 }
Ferdinando Castagnoli Lorenzo Branchetti Damiano Moscardi Andrea Martinelli Carlo Guasti Bruno Banchini Andrea Lulli Guido Bisori Girolamo di Pace Riccardo Berti Convenevole da Prato Sem Benelli Serafino Moreno Volpini Massimo Logli Nello Corti Giuseppe Valentini Riccardo Mazzoni Dino Saccenti Cristina Arnone Antonio Martini Gino Gori Andrea Fedi Compagnetto da Prato Carlo Bocchineri Gloria Nuti Lapo Mazzei Lamberto Nazzareno Gestri Piero Gambacciani Giulio de' Medici Cesare Guasti Simone Scatizzi Fabrizio Mattei Giovacchino Limberti Enrico Coveri Sandro Veronesi Vasco Dugini Niki Hendriks Ridolfo Livi Francesco Pieri Giuseppe Mazzoni Priscilla Del Prete Gianni Cristiani Giovanni Francesco Buonamici Luca Calvani Antonella Fattori Pier Francesco Riccio Enrico Befani Giacomo Alberti Alvaro Ciabatti Curzio Malaparte William Frullani Antonio Livi Duccio Innocenti Diletta Sestini Sergio Masieri Marcello Tofani Anita Todesco Saverio Seracini Giulia Bartolini Emilia Goggi Francesco Nuti Roberto Vieri Giovanni Veronesi Rachele Risaliti Roberto Castellani Elisa Cella Pamela Camassa Giovanni di Gherardo da Prato Luigi Gallo Sonia Carlo Livi Paolo Dagomari di Prato Mario Cipriani Rebecca Johnston Ermolao Rubieri Pamela Villoresi Amara Roberto Giovannini Luca Marrone Angiolo Badiani Luigi Catani Ardelio Allori Silvano Gelli Brunero Gherardini Marco Ciatti Alessandro Diamanti Lorenzo Dalla Porta Paolo Rossi Antonio Bonamici Giuseppe Becherini Giovacchino Carradori Ronaldo Bonacchi Adriana Biagiotti Selvaggio Morelli Mario Bertini Giovanni da Prato Clara Calamai Armando Meoni Giovanni Benini Luciano Bettarini Matteo Biffoni Manuel Pucciarelli Alessandro Franchi Mario Cappelli Giovanni Bertini Andrea Abati Dino Canestri Luca Avagliano Polifonte Puccianti Moreno Cambi Giulio Bresci Marco Cocci Leonardo Pettinari Mauro Vannucchi Geminiano Inghirami Andrea Lastrucci Marco Romagnoli Oreste Chilleri Francesco Coppini Anne Ditchburn Tessa Bonhomme Évariste Gherardi Claudio Morganti Ruggero Balli Sarah Ferrati Giovambattista Casotti Letizia Paoli Sara Colzi Stefano Tempesti Giorgio Vestri Alessandro Goti Eugenio Gestri Nedo Logli Mirko Gerbi Roberto Cenni Piero Cironi Ranieri di Prato Jorio Borchi Antonello Giacomelli Francesco di Marco Datini Andrea Righi Adriano Cecchi Jacopo Polverini Chiara Tabani Filippino Lippi Giovanni Livi Alighiero Ceri Maurizio Merluzzo Antonio Marini di Prato Gaetano Corsani Piero De Bernardi Guido Nincheri Andrea Bellini Massimo Bertacci Matteo da Prato Roberto Ciardi Ferdinando Carlesi Marco Calvani Domenico Giunti Cesare Ciardi Iva Pacetti Costantino Pittei Giuseppe Macrì Giuseppe Castellano Lorenzo Bruni Linda Collini Jury Chechi Enrico Bertini Nicolò Albertini Rocco Montana Anna Gabriella Ceccatelli Vanessa Benelli Mosell Stefano Borchi Graziano Mazzoni Bob Wilson Davide Lufrano Chaves Alberto Casella Amilcare Fantoli Piero Lenzi Luigi Pagliuca Tommaso di Piero Trombetto Ighli Vannucchi Mario Marini Alessandra Bocchineri Paolo Magelli Domenico Zipoli Roberto Gabbiani
Marcello Tofani, Fabrizio Mattei, Domenico Giunti, Ridolfo Livi, Francesco Coppini, Ighli Vannucchi, Luca Calvani, Sem Benelli, Andrea Lastrucci and Sergio Masieri have place of birth as Prato or Sudbury
Marcello Tofani Fabrizio Mattei Domenico Giunti Ridolfo Livi Francesco Coppini Ighli Vannucchi Luca Calvani Sem Benelli Andrea Lastrucci Sergio Masieri
action filter_type
action union
action find_reverse
entity Prato
relation place of birth
action find_reverse
entity Sudbury
relation place of birth
type common name
{'OR': [[{'concept': 'common name'}, 'place of birth', 'Prato'], [{'concept': 'common name'}, 'place of birth', 'Sudbury']]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?m ) { ( resource:Sudbury ) ( resource:Prato ) } . ?v property:place_of_birth ?m } . ?v rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can min number of people perform with ?
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?v ) { SELECT DISTINCT ?n ( COUNT ( ?i ) AS ?b ) WHERE { ?i property:P1303 ?n . ?i rdf:type ontology:Q502895 . ?n rdf:type ontology:Q34379 } GROUP BY ?n } } . { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?r ) WHERE { ?f rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 . ?z property:P1303 ?f } GROUP BY ?f } . FILTER ( ?r = ?v ) }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?v ) { SELECT DISTINCT ?n ( COUNT ( ?i ) AS ?b ) WHERE { ?i property:instrument ?n . ?i rdf:type ontology:common_name . ?n rdf:type ontology:musical_instrument } GROUP BY ?n } } . { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?r ) WHERE { ?f rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name . ?z property:instrument ?f } GROUP BY ?f } . FILTER ( ?r = ?v ) }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
Min number of people can perform the [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?v ) { SELECT DISTINCT ?n ( COUNT ( ?i ) AS ?b ) WHERE { ?i property:P1303 ?n . ?i rdf:type ontology:Q502895 . ?n rdf:type ontology:Q34379 } GROUP BY ?n } } . { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?r ) WHERE { ?f rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 . ?z property:P1303 ?f } GROUP BY ?f } . FILTER ( ?r = ?v ) }
spoon cajón wind instrument
Min number of people can perform the spoon, cajón and wind instrument
spoon cajón wind instrument
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?v ) { SELECT DISTINCT ?n ( COUNT ( ?i ) AS ?b ) WHERE { ?i property:instrument ?n . ?i rdf:type ontology:common_name . ?n rdf:type ontology:musical_instrument } GROUP BY ?n } } . { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?r ) WHERE { ?f rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name . ?z property:instrument ?f } GROUP BY ?f } . FILTER ( ?r = ?v ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q626035
P1303
Q34379 Q502895
USER
Which musical instruments are played by approximately the same number of people as glockenspiel ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q626035
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { resource:Q626035 property:P1303 ?z . ?z rdf:type ontology:Q34379 } } . FILTER ( ?n = ?m ) . { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?s } }
glockenspiel
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity glockenspiel
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { resource:glockenspiel property:instrument ?z . ?z rdf:type ontology:musical_instrument } } . FILTER ( ?n = ?m ) . { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?s } }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q626035
relation P1303
type Q34379
[ANSWERS] are played by approximately the same number of people as glockenspiel
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { resource:Q626035 property:P1303 ?z . ?z rdf:type ontology:Q34379 } } . FILTER ( ?n = ?m ) . { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?s } }
viola lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Davul, harpsichord and Wurlitzer electric piano are played by approximately the same number of people as glockenspiel
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity glockenspiel
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { resource:glockenspiel property:instrument ?z . ?z rdf:type ontology:musical_instrument } } . FILTER ( ?n = ?m ) . { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?s } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q3382191
P1303
Q34379 Q502895
USER
And what about upright piano?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q3382191
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?w ) WHERE { ?m rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 . ?y property:P1303 ?m } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { resource:Q3382191 property:P1303 ?l . ?l rdf:type ontology:Q34379 } } . FILTER ( ?w = ?e ) }
upright piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity upright piano
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?w ) WHERE { ?m rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name . ?y property:instrument ?m } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { resource:upright_piano property:instrument ?l . ?l rdf:type ontology:musical_instrument } } . FILTER ( ?w = ?e ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q3382191
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?w ) WHERE { ?m rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 . ?y property:P1303 ?m } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { resource:Q3382191 property:P1303 ?l . ?l rdf:type ontology:Q34379 } } . FILTER ( ?w = ?e ) }
viola lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity upright piano
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?w ) WHERE { ?m rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name . ?y property:instrument ?m } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { resource:upright_piano property:instrument ?l . ?l rdf:type ontology:musical_instrument } } . FILTER ( ?w = ?e ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P425
Q12737077
USER
How many occupations have that musical instrument as thier associated field of occupation ?
(Q81982,P425,c(Q12737077))
['Q81982', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q81982 property:P425 ?z . ?z rdf:type ontology:Q528892 }
['harpsichord', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:harpsichord property:field_of_this_occupation ?z . ?z rdf:type ontology:occupation }
[]
occupation
Quantitative|Count|Single entity type|Clarification
Q81982
SYSTEM
Did you mean harpsichord ?
(Q1178361,P425,c(Q12737077)) (Q81982,P425,c(Q12737077)) (Q1759986,P425,c(Q12737077))
[ANSWER]
['Q1178361', 'P425', {'concept': 'Q12737077'}] ['Q81982', 'P425', {'concept': 'Q12737077'}] ['Q1759986', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q81982 property:P425 ?z . ?z rdf:type ontology:Q528892 }
Did you mean harpsichord ?
harpsichord
['davul', 'field of this occupation', {'concept': 'occupation'}] ['harpsichord', 'field of this occupation', {'concept': 'occupation'}] ['Wurlitzer electric piano', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:harpsichord property:field_of_this_occupation ?z . ?z rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q81982,P425,c(Q12737077))
['Q81982', 'P425', {'concept': 'Q12737077'}]
['harpsichord', 'field of this occupation', {'concept': 'occupation'}]
[]
SYSTEM
1
Q5371902
(Q81982,P425,c(Q12737077))
[ANSWER]
['Q81982', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q81982 property:P425 ?z . ?z rdf:type ontology:Q528892 }
harpsichordist
1
['harpsichord', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:harpsichord property:field_of_this_occupation ?z . ?z rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q25216 Q13377
P47
Q15617994
USER
Which administrative territories are bordered by Prato or Varallo Sesia ?
OR((Q13377,P47,c(Q15617994)), (Q25216,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q13377
relation P47
action find
entity Q25216
relation P47
type Q15617994
{'OR': [['Q13377', 'P47', {'concept': 'Q15617994'}], ['Q25216', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . { { resource:Q13377 property:P47 ?i } UNION { resource:Q25216 property:P47 ?i } } }
Varallo Sesia Prato
action filter_type
action union
action find
entity Prato
relation shares border with
action find
entity Varallo Sesia
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Prato', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Varallo Sesia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Prato property:shares_border_with ?i } UNION { resource:Varallo_Sesia property:shares_border_with ?i } } }
[]
designation for an administrative territorial entity
Q82636 Q102716 Q102555 Q24901 Q23689 Q20387 Q25197 Q23657 Q20392 Q25219
SYSTEM
Some of them are Campi Bisenzio, Quarrata, Agliana, Borgosesia, Quarna Sotto, Poggio a Caiano, Sabbia, Nonio, Vaiano, Vocca
Q20392 Q102555 Q20387 Q23657 Q20385 Q82635 Q82636 Q20389 Q23689 Q25031 Q23709 Q25197 Q24908 Q25179 Q24997 Q23305 Q24901 Q25219 Q102716 Q23611
OR((Q13377,P47,c(Q15617994)), (Q25216,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q13377
relation P47
action find
entity Q25216
relation P47
type Q15617994
[ANSWERS] are bordered by Prato or Varallo Sesia
{'OR': [['Q13377', 'P47', {'concept': 'Q15617994'}], ['Q25216', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . { { resource:Q13377 property:P47 ?i } UNION { resource:Q25216 property:P47 ?i } } }
Vaiano Agliana Poggio a Caiano Nonio Carmignano Calenzano Campi Bisenzio Montemurlo Quarna Sotto Cravagliana Valstrona Sabbia Breia Quarona Civiasco Cesara Borgosesia Vocca Quarrata Madonna del Sasso
Campi Bisenzio, Quarrata, Agliana, Borgosesia, Quarna Sotto, Poggio a Caiano, Sabbia, Nonio, Vaiano and Vocca are bordered by Prato or Varallo Sesia
Campi Bisenzio Quarrata Agliana Borgosesia Quarna Sotto Poggio a Caiano Sabbia Nonio Vaiano Vocca
action filter_type
action union
action find
entity Prato
relation shares border with
action find
entity Varallo Sesia
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Prato', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Varallo Sesia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Prato property:shares_border_with ?i } UNION { resource:Varallo_Sesia property:shares_border_with ?i } } }
[]