Simple Question (Direct)
Simple Question
Q39143
P47
Q15617994
USER
Which administrative territories are adjacent to Vizzola Ticino ?
(Q39143,P47,c(Q15617994))
action filter_type
action find
entity Q39143
relation P47
type Q15617994
['Q39143', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q39143 property:P47 ?d . ?d rdf:type ontology:Q15617994 }
Vizzola Ticino
action filter_type
action find
entity Vizzola Ticino
relation shares border with
type designation for an administrative territorial entity
['Vizzola Ticino', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Vizzola_Ticino property:shares_border_with ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q40588 Q39432 Q22529
SYSTEM
Somma Lombardo, Lonate Pozzolo, Oleggio
Q22490 Q22571 Q39630 Q40588 Q39432 Q22529
(Q39143,P47,c(Q15617994))
action filter_type
action find
entity Q39143
relation P47
type Q15617994
[ANSWERS] are adjacent to Vizzola Ticino
['Q39143', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q39143 property:P47 ?d . ?d rdf:type ontology:Q15617994 }
Marano Ticino Pombia Ferno Somma Lombardo Lonate Pozzolo Oleggio
Somma Lombardo, Lonate Pozzolo and Oleggio are adjacent to Vizzola Ticino
Somma Lombardo Lonate Pozzolo Oleggio
action filter_type
action find
entity Vizzola Ticino
relation shares border with
type designation for an administrative territorial entity
['Vizzola Ticino', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Vizzola_Ticino property:shares_border_with ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q40588 Q39432 Q22529
P47
Q15617994
USER
Which administrative territories are next to the border of those ones ?
(c(Q15617994),P47,Q40588) (c(Q15617994),P47,Q39432) (c(Q15617994),P47,Q22529)
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q40588'] [{'concept': 'Q15617994'}, 'P47', 'Q39432'] [{'concept': 'Q15617994'}, 'P47', 'Q22529']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . ?a property:P47 ?z . VALUES ( ?a ) { ( resource:Q22490 ) ( resource:Q22571 ) ( resource:Q39630 ) } }
Somma Lombardo Lonate Pozzolo Oleggio
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Somma Lombardo'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Lonate Pozzolo'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Oleggio']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a property:shares_border_with ?z . VALUES ( ?a ) { ( resource:Marano_Ticino ) ( resource:Pombia ) ( resource:Ferno ) } }
[]
designation for an administrative territorial entity
Q39432 Q40303 Q40827
SYSTEM
Lonate Pozzolo, Vergiate, Samarate
Q40303 Q40879 Q22571 Q40884 Q41101 Q22646 Q39036 Q40827 Q39143 Q22161 Q39630 Q22070 Q22529 Q40827 Q42925 Q39143 Q42432 Q42825 Q39630 Q22070 Q22500 Q22508 Q39432 Q22644 Q39143 Q22490
(c(Q15617994),P47,Q40588) (c(Q15617994),P47,Q39432) (c(Q15617994),P47,Q22529)
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
[ANSWERS] are next to the border of those ones
[{'concept': 'Q15617994'}, 'P47', 'Q40588'] [{'concept': 'Q15617994'}, 'P47', 'Q39432'] [{'concept': 'Q15617994'}, 'P47', 'Q22529']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . ?a property:P47 ?z . VALUES ( ?a ) { ( resource:Q22490 ) ( resource:Q22571 ) ( resource:Q39630 ) } }
Vergiate Golasecca Pombia Casorate Sempione Arsago Seprio Varallo Pombia Cardano al Campo Samarate Vizzola Ticino Castelletto sopra Ticino Ferno Bellinzago Novarese Oleggio Samarate Castano Primo Vizzola Ticino Nosate Vanzaghello Ferno Bellinzago Novarese Mezzomerico Momo Lonate Pozzolo Vaprio d'Agogna Vizzola Ticino Marano Ticino
Lonate Pozzolo, Vergiate and Samarate are next to the border of those ones
Lonate Pozzolo Vergiate Samarate
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Somma Lombardo'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Lonate Pozzolo'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Oleggio']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a property:shares_border_with ?z . VALUES ( ?a ) { ( resource:Marano_Ticino ) ( resource:Pombia ) ( resource:Ferno ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q39432 Q40303 Q40827
P19
Q502895
USER
Which people were born at those administrative territories ?
(c(Q502895),P19,Q39432) (c(Q502895),P19,Q40303) (c(Q502895),P19,Q40827)
action filter_type
action find_reverse
entity prev_answer
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q39432'] [{'concept': 'Q502895'}, 'P19', 'Q40303'] [{'concept': 'Q502895'}, 'P19', 'Q40827']
SELECT DISTINCT ?t WHERE { VALUES ( ?q ) { ( resource:Q40303 ) ( resource:Q40879 ) ( resource:Q22571 ) } . ?t rdf:type ontology:Q502895 . ?t property:P19 ?q }
Lonate Pozzolo Vergiate Samarate
action filter_type
action find_reverse
entity prev_answer
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Lonate Pozzolo'] [{'concept': 'common name'}, 'place of birth', 'Vergiate'] [{'concept': 'common name'}, 'place of birth', 'Samarate']
SELECT DISTINCT ?t WHERE { VALUES ( ?q ) { ( resource:Vergiate ) ( resource:Golasecca ) ( resource:Pombia ) } . ?t rdf:type ontology:common_name . ?t property:place_of_birth ?q }
[]
common name
Q3617227 Q325170 Q15617248
SYSTEM
Angelo Simontacchi, Daniele Fortunato, Mario Ceriani
Q3702180 Q2857499 Q3659768 Q3617227 Q3826786 Q3388133 Q21209070 Q19545372 Q325170 Q15617248
(c(Q502895),P19,Q39432) (c(Q502895),P19,Q40303) (c(Q502895),P19,Q40827)
action filter_type
action find_reverse
entity prev_answer
relation P19
type Q502895
[ANSWERS] were born at those administrative territories
[{'concept': 'Q502895'}, 'P19', 'Q39432'] [{'concept': 'Q502895'}, 'P19', 'Q40303'] [{'concept': 'Q502895'}, 'P19', 'Q40827']
SELECT DISTINCT ?t WHERE { VALUES ( ?q ) { ( resource:Q40303 ) ( resource:Q40879 ) ( resource:Q22571 ) } . ?t rdf:type ontology:Q502895 . ?t property:P19 ?q }
Danilo Grassi Antonio da Lonate Carlo Regalia Angelo Simontacchi Landolfo di Vergiate Pietro Giudici Gino Stefani Ercole Ferrario Daniele Fortunato Mario Ceriani
Angelo Simontacchi, Daniele Fortunato and Mario Ceriani were born at those administrative territories
Angelo Simontacchi Daniele Fortunato Mario Ceriani
action filter_type
action find_reverse
entity prev_answer
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Lonate Pozzolo'] [{'concept': 'common name'}, 'place of birth', 'Vergiate'] [{'concept': 'common name'}, 'place of birth', 'Samarate']
SELECT DISTINCT ?t WHERE { VALUES ( ?q ) { ( resource:Vergiate ) ( resource:Golasecca ) ( resource:Pombia ) } . ?t rdf:type ontology:common_name . ?t property:place_of_birth ?q }
[]
Clarification
Simple Question|Single Entity|Indirect
Q325170
P21
Q290
USER
What is the sex of that person ?
(Q325170,P21,c(Q290))
action filter_type
action find
entity Q325170
relation P21
type Q290
['Q325170', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q290 . resource:Q325170 property:P21 ?o }
Daniele Fortunato
action filter_type
action find
entity Daniele Fortunato
relation gender
type sex
['Daniele Fortunato', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sex . resource:Daniele_Fortunato property:gender ?o }
[]
sex
Clarification for simple ques.
Q3617227
SYSTEM
Did you mean Angelo Simontacchi ?
Q3617227 Q325170 Q15617248
(Q3617227,P21,c(Q290)) (Q325170,P21,c(Q290)) (Q15617248,P21,c(Q290))
[ANSWER]
['Q3617227', 'P21', {'concept': 'Q290'}] ['Q325170', 'P21', {'concept': 'Q290'}] ['Q15617248', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q290 . resource:Q325170 property:P21 ?o }
Angelo Simontacchi Daniele Fortunato Mario Ceriani
Did you mean Angelo Simontacchi ?
Angelo Simontacchi
['Angelo Simontacchi', 'gender', {'concept': 'sex'}] ['Daniele Fortunato', 'gender', {'concept': 'sex'}] ['Mario Ceriani', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sex . resource:Daniele_Fortunato property:gender ?o }
[]
Simple Question (Coreferenced)
USER
No, I meant Daniele Fortunato. Could you tell me the answer for that?
(Q325170,P21,c(Q290))
Q325170
['Q325170', 'P21', {'concept': 'Q290'}]
['Daniele Fortunato', 'gender', {'concept': 'sex'}]
[]
Q6581097
SYSTEM
male
Q6581097
(Q325170,P21,c(Q290))
action filter_type
action find
entity Q325170
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q325170', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q290 . resource:Q325170 property:P21 ?o }
male
The sex of that person is a male
male
action filter_type
action find
entity Daniele Fortunato
relation gender
type sex
['Daniele Fortunato', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sex . resource:Daniele_Fortunato property:gender ?o }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q7660336
P21
Q502895
USER
Does Syed Hammad Raza have the gender as that sex ?
(Q7660336,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q7660336
relation P21
['Q7660336', 'P21', 'Q6581097']
ASK WHERE { resource:Q7660336 property:P21 resource:Q6581097 }
male Syed Hammad Raza
action is_in
entity male
action find
entity Syed Hammad Raza
relation gender
['Syed Hammad Raza', 'gender', 'male']
ASK WHERE { resource:Syed_Hammad_Raza property:gender resource:male }
[]
common name
SYSTEM
YES
(Q7660336,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q7660336
relation P21
[ANSWER]
['Q7660336', 'P21', 'Q6581097']
ASK WHERE { resource:Q7660336 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Syed Hammad Raza
relation gender
['Syed Hammad Raza', 'gender', 'male']
ASK WHERE { resource:Syed_Hammad_Raza property:gender resource:male }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q537750
P1303
Q34379 Q502895
USER
Which musical instruments can approximately the same number of people perform with as Djembe ?
(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 Q537750
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?f ) WHERE { ?e property:P1303 ?s . ?e rdf:type ontology:Q502895 . ?s rdf:type ontology:Q34379 } GROUP BY ?s } . FILTER ( ?f = ?l ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { ?n rdf:type ontology:Q34379 . resource:Q537750 property:P1303 ?n } } }
Djembe
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Djembe
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?f ) WHERE { ?e property:instrument ?s . ?e rdf:type ontology:common_name . ?s rdf:type ontology:musical_instrument } GROUP BY ?s } . FILTER ( ?f = ?l ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { ?n rdf:type ontology:musical_instrument . resource:Djembe property:instrument ?n } } }
[]
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 Q537750
relation P1303
type Q34379
[ANSWERS] can approximately the same number of people perform with as Djembe
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?f ) WHERE { ?e property:P1303 ?s . ?e rdf:type ontology:Q502895 . ?s rdf:type ontology:Q34379 } GROUP BY ?s } . FILTER ( ?f = ?l ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { ?n rdf:type ontology:Q34379 . resource:Q537750 property:P1303 ?n } } }
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 can approximately the same number of people perform with as Djembe
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 Djembe
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?f ) WHERE { ?e property:instrument ?s . ?e rdf:type ontology:common_name . ?s rdf:type ontology:musical_instrument } GROUP BY ?s } . FILTER ( ?f = ?l ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { ?n rdf:type ontology:musical_instrument . resource:Djembe property:instrument ?n } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q213461
P1303
Q34379 Q502895
USER
Which musical instruments are played by more number of people than harmonium ?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q213461
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?b ) WHERE { ?j property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 } GROUP BY ?t } . FILTER ( ?b > ?s ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { resource:Q213461 property:P1303 ?g . ?g rdf:type ontology:Q34379 } } }
harmonium
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity harmonium
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?b ) WHERE { ?j property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name } GROUP BY ?t } . FILTER ( ?b > ?s ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { resource:harmonium property:instrument ?g . ?g rdf:type ontology:musical_instrument } } }
[]
musical instrument common name
Q5994 Q81982 Q80284
SYSTEM
piano, harpsichord, viola
Q80284 Q46185 Q80019 Q2563510 Q5994 Q81982 Q206987 Q8338 Q8371 Q8355 Q3382191 Q742180 Q1444 Q220971 Q128309 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q213461
relation P1303
type Q34379
[ANSWERS] are played by more number of people than harmonium
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?b ) WHERE { ?j property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 } GROUP BY ?t } . FILTER ( ?b > ?s ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { resource:Q213461 property:P1303 ?g . ?g rdf:type ontology:Q34379 } } }
viola bass guitar double bass steel-string acoustic guitar piano harpsichord vibraphone trumpet cello violin upright piano viola d'amore organ marimba drum kit electronic keyboard drum
Piano, harpsichord and viola are played by more number of people than harmonium
piano harpsichord viola
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity harmonium
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?b ) WHERE { ?j property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name } GROUP BY ?t } . FILTER ( ?b > ?s ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { resource:harmonium property:instrument ?g . ?g rdf:type ontology:musical_instrument } } }
[]