Simple Question (Direct)
Simple Question
Q1353004
P512
Q3412758
USER
Which qualification does Erich von Lobkowicz hold ?
(Q1353004,P512,c(Q3412758))
action filter_type
action find
entity Q1353004
relation P512
type Q3412758
['Q1353004', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?q WHERE { resource:Q1353004 property:P512 ?q . ?q rdf:type ontology:Q3412758 }
Erich von Lobkowicz
action filter_type
action find
entity Erich von Lobkowicz
relation academic degree
type qualification
['Erich von Lobkowicz', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?q WHERE { resource:Erich_von_Lobkowicz property:academic_degree ?q . ?q rdf:type ontology:qualification }
[]
qualification
Q849697
SYSTEM
doctoral degree
Q849697
(Q1353004,P512,c(Q3412758))
action filter_type
action find
entity Q1353004
relation P512
type Q3412758
Erich von Lobkowicz holds the [ANSWER]
['Q1353004', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?q WHERE { resource:Q1353004 property:P512 ?q . ?q rdf:type ontology:Q3412758 }
doctoral degree
Erich von Lobkowicz holds the doctoral degree
doctoral degree
action filter_type
action find
entity Erich von Lobkowicz
relation academic degree
type qualification
['Erich von Lobkowicz', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?q WHERE { resource:Erich_von_Lobkowicz property:academic_degree ?q . ?q rdf:type ontology:qualification }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1353004
P40
Q502895
USER
Which person has Erich von Lobkowicz as a child ?
(c(Q502895),P40,Q1353004)
action filter_type
action find_reverse
entity Q1353004
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q1353004']
SELECT DISTINCT ?c WHERE { ?c property:P40 resource:Q1353004 . ?c rdf:type ontology:Q502895 }
Erich von Lobkowicz
action filter_type
action find_reverse
entity Erich von Lobkowicz
relation child
type common name
[{'concept': 'common name'}, 'child', 'Erich von Lobkowicz']
SELECT DISTINCT ?c WHERE { ?c property:child resource:Erich_von_Lobkowicz . ?c rdf:type ontology:common_name }
[]
common name
Q1991580
SYSTEM
Nikolaus Lobkowicz
Q1991580
(c(Q502895),P40,Q1353004)
action filter_type
action find_reverse
entity Q1353004
relation P40
type Q502895
[ANSWER] has Erich von Lobkowicz as a child
[{'concept': 'Q502895'}, 'P40', 'Q1353004']
SELECT DISTINCT ?c WHERE { ?c property:P40 resource:Q1353004 . ?c rdf:type ontology:Q502895 }
Nikolaus Lobkowicz
Nikolaus Lobkowicz has Erich von Lobkowicz as a child
Nikolaus Lobkowicz
action filter_type
action find_reverse
entity Erich von Lobkowicz
relation child
type common name
[{'concept': 'common name'}, 'child', 'Erich von Lobkowicz']
SELECT DISTINCT ?c WHERE { ?c property:child resource:Erich_von_Lobkowicz . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1991580
P7
Q502895
USER
Who is a sibling of that one ?
(c(Q502895),P7,Q1991580)
action filter_type
action find
entity Q1991580
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q1991580']
SELECT DISTINCT ?m WHERE { resource:Q1991580 property:P7 ?m . ?m rdf:type ontology:Q502895 }
Nikolaus Lobkowicz
action filter_type
action find
entity Nikolaus Lobkowicz
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Nikolaus Lobkowicz']
SELECT DISTINCT ?m WHERE { resource:Nikolaus_Lobkowicz property:brother ?m . ?m rdf:type ontology:common_name }
[]
common name
Q15735302
SYSTEM
Otakar Lobkowicz
Q15735302
(c(Q502895),P7,Q1991580)
action filter_type
action find
entity Q1991580
relation P7
type Q502895
A sibling of that one is [ANSWER]
[{'concept': 'Q502895'}, 'P7', 'Q1991580']
SELECT DISTINCT ?m WHERE { resource:Q1991580 property:P7 ?m . ?m rdf:type ontology:Q502895 }
Otakar Lobkowicz
A sibling of that one is Otakar Lobkowicz
Otakar Lobkowicz
action filter_type
action find
entity Nikolaus Lobkowicz
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Nikolaus Lobkowicz']
SELECT DISTINCT ?m WHERE { resource:Nikolaus_Lobkowicz property:brother ?m . ?m rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q626035
P1303
Q34379 Q502895
USER
Which musical instruments do approximately the same number of people know to play 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 ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?a ) WHERE { ?c property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { resource:Q626035 property:P1303 ?x . ?x rdf:type ontology:Q34379 } } . FILTER ( ?a = ?y ) }
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 ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?a ) WHERE { ?c property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { resource:glockenspiel property:instrument ?x . ?x rdf:type ontology:musical_instrument } } . FILTER ( ?a = ?y ) }
[]
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] approximately the same number of people know to play as glockenspiel
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?a ) WHERE { ?c property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { resource:Q626035 property:P1303 ?x . ?x rdf:type ontology:Q34379 } } . FILTER ( ?a = ?y ) }
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 approximately the same number of people know to play 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 ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?a ) WHERE { ?c property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { resource:glockenspiel property:instrument ?x . ?x rdf:type ontology:musical_instrument } } . FILTER ( ?a = ?y ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q81982
P425
Q12737077
USER
Who is associated with the field of occupation that musical instrument ?
(Q81982,P425,c(Q12737077))
action filter_type
action find
entity Q81982
relation P425
type Q12737077
['Q81982', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q81982 property:P425 ?x . ?x rdf:type ontology:Q12737077 }
harpsichord
action filter_type
action find
entity harpsichord
relation field of this occupation
type occupation
['harpsichord', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:harpsichord property:field_of_this_occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q81982
SYSTEM
Did you mean harpsichord ?
Q1178361 Q81982 Q1759986
(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 ?x WHERE { resource:Q81982 property:P425 ?x . ?x rdf:type ontology:Q12737077 }
davul harpsichord Wurlitzer electric piano
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 ?x WHERE { resource:harpsichord property:field_of_this_occupation ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
Yes
(Q81982,P425,c(Q12737077))
['Q81982', 'P425', {'concept': 'Q12737077'}]
['harpsichord', 'field of this occupation', {'concept': 'occupation'}]
[]
Q5371902
SYSTEM
harpsichordist
Q5371902
(Q81982,P425,c(Q12737077))
action filter_type
action find
entity Q81982
relation P425
type Q12737077
T [ANSWER] is associated with the field of occupation that musical instrument
['Q81982', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q81982 property:P425 ?x . ?x rdf:type ontology:Q12737077 }
harpsichordist
T harpsichordist is associated with the field of occupation that musical instrument
harpsichordist
action filter_type
action find
entity harpsichord
relation field of this occupation
type occupation
['harpsichord', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:harpsichord property:field_of_this_occupation ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1991580
P1038
Q502895
USER
Who is a relative of Nikolaus Lobkowicz ?
(Q1991580,P1038,c(Q502895))
action filter_type
action find
entity Q1991580
relation P1038
type Q502895
['Q1991580', 'P1038', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q1991580 property:P1038 ?g . ?g rdf:type ontology:Q502895 }
Nikolaus Lobkowicz
action filter_type
action find
entity Nikolaus Lobkowicz
relation relative
type common name
['Nikolaus Lobkowicz', 'relative', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Nikolaus_Lobkowicz property:relative ?g . ?g rdf:type ontology:common_name }
[]
common name
Q328599
SYSTEM
Georg Christian, Prince of Lobkowicz
Q328599
(Q1991580,P1038,c(Q502895))
action filter_type
action find
entity Q1991580
relation P1038
type Q502895
A relative of Nikolaus Lobkowicz is Prince [ANSWER]
['Q1991580', 'P1038', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q1991580 property:P1038 ?g . ?g rdf:type ontology:Q502895 }
Georg Christian, Prince of Lobkowicz
A relative of Nikolaus Lobkowicz is Prince Georg Christian, Prince of Lobkowicz
Georg Christian, Prince of Lobkowicz
action filter_type
action find
entity Nikolaus Lobkowicz
relation relative
type common name
['Nikolaus Lobkowicz', 'relative', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Nikolaus_Lobkowicz property:relative ?g . ?g rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q328599 Q27038739 Q21014706
P40
Q502895
USER
Does that person have Bedřich Lobkowicz and Fernand Le Heurteur as a child ?
(Q328599,P40,Q27038739) (Q328599,P40,Q21014706)
action is_in
entity Q328599
action intersection
action find_reverse
entity Q27038739
relation P40
action find_reverse
entity Q21014706
relation P40
['Q328599', 'P40', 'Q27038739'] ['Q328599', 'P40', 'Q21014706']
ASK WHERE { resource:Q328599 property:P40 resource:Q21014706 . resource:Q328599 property:P40 resource:Q27038739 }
Georg Christian, Prince of Lobkowicz Bedřich Lobkowicz Fernand Le Heurteur
action is_in
entity Georg Christian, Prince of Lobkowicz
action intersection
action find_reverse
entity Bedřich Lobkowicz
relation child
action find_reverse
entity Fernand Le Heurteur
relation child
['Georg Christian, Prince of Lobkowicz', 'child', 'Bedřich Lobkowicz'] ['Georg Christian, Prince of Lobkowicz', 'child', 'Fernand Le Heurteur']
ASK WHERE { resource:Georg_Christian,_Prince_of_Lobkowicz property:child resource:Fernand_Le_Heurteur . resource:Georg_Christian,_Prince_of_Lobkowicz property:child resource:Bedřich_Lobkowicz }
[]
common name
SYSTEM
YES and NO respectively
(Q328599,P40,Q27038739) (Q328599,P40,Q21014706)
action is_in
entity Q328599
action intersection
action find_reverse
entity Q27038739
relation P40
action find_reverse
entity Q21014706
relation P40
[ANSWER]
['Q328599', 'P40', 'Q27038739'] ['Q328599', 'P40', 'Q21014706']
ASK WHERE { resource:Q328599 property:P40 resource:Q21014706 . resource:Q328599 property:P40 resource:Q27038739 }
YES and NO respectively
action is_in
entity Georg Christian, Prince of Lobkowicz
action intersection
action find_reverse
entity Bedřich Lobkowicz
relation child
action find_reverse
entity Fernand Le Heurteur
relation child
['Georg Christian, Prince of Lobkowicz', 'child', 'Bedřich Lobkowicz'] ['Georg Christian, Prince of Lobkowicz', 'child', 'Fernand Le Heurteur']
ASK WHERE { resource:Georg_Christian,_Prince_of_Lobkowicz property:child resource:Fernand_Le_Heurteur . resource:Georg_Christian,_Prince_of_Lobkowicz property:child resource:Bedřich_Lobkowicz }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q218547
P180
Q34379 Q340169 Q3305213
USER
Which musical instruments are expressed in approximately the same number of medias or paintings as Sigismund Bell ?
(c(Q340169)|c(Q3305213),P180,c(Q34379))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q340169
action find_reverse_tuple_counts
relation P180
type Q34379
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q218547
relation P180
type Q340169
type Q3305213
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { { ?v rdf:type ontology:Q340169 } UNION { ?v rdf:type ontology:Q3305213 } } . ?v property:P180 resource:Q218547 } } . FILTER ( ?f = ?m ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) ?d WHERE { { ?d rdf:type ontology:Q34379 . ?b rdf:type ontology:Q340169 . ?b property:P180 ?d } UNION { ?b property:P180 ?d . ?d rdf:type ontology:Q34379 . ?b rdf:type ontology:Q3305213 } } GROUP BY ?d } }
Sigismund Bell
action approx
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type media
action find_reverse_tuple_counts
relation depicts
type musical instrument
type painting
action count
action filter_multi_types
action find_reverse
entity Sigismund Bell
relation depicts
type media
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { { ?v rdf:type ontology:media } UNION { ?v rdf:type ontology:painting } } . ?v property:depicts resource:Sigismund_Bell } } . FILTER ( ?f = ?m ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) ?d WHERE { { ?d rdf:type ontology:musical_instrument . ?b rdf:type ontology:media . ?b property:depicts ?d } UNION { ?b property:depicts ?d . ?d rdf:type ontology:musical_instrument . ?b rdf:type ontology:painting } } GROUP BY ?d } }
[]
musical instrument media painting
Q5994 Q81982 Q218547
SYSTEM
piano, harpsichord, Sigismund Bell
Q8371 Q3382191 Q5994 Q7933058 Q81982 Q190172 Q218547 Q8338 Q1444 Q173453 Q1141589 Q426948 Q871633 Q3500690 Q1798603
(c(Q340169)|c(Q3305213),P180,c(Q34379))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q340169
action find_reverse_tuple_counts
relation P180
type Q34379
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q218547
relation P180
type Q340169
type Q3305213
[ANSWERS] are expressed in approximately the same number of medias or paintings as Sigismund Bell
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { { ?v rdf:type ontology:Q340169 } UNION { ?v rdf:type ontology:Q3305213 } } . ?v property:P180 resource:Q218547 } } . FILTER ( ?f = ?m ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) ?d WHERE { { ?d rdf:type ontology:Q34379 . ?b rdf:type ontology:Q340169 . ?b property:P180 ?d } UNION { ?b property:P180 ?d . ?d rdf:type ontology:Q34379 . ?b rdf:type ontology:Q3305213 } } GROUP BY ?d } }
cello upright piano piano Viola caipira harpsichord cymbal Sigismund Bell trumpet organ wind instrument Crotales sistrum Handbell Church bell string instrument
Piano, harpsichord and Sigismund Bell are expressed in approximately the same number of medias or paintings as Sigismund Bell
piano harpsichord Sigismund Bell
action approx
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type media
action find_reverse_tuple_counts
relation depicts
type musical instrument
type painting
action count
action filter_multi_types
action find_reverse
entity Sigismund Bell
relation depicts
type media
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { { ?v rdf:type ontology:media } UNION { ?v rdf:type ontology:painting } } . ?v property:depicts resource:Sigismund_Bell } } . FILTER ( ?f = ?m ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) ?d WHERE { { ?d rdf:type ontology:musical_instrument . ?b rdf:type ontology:media . ?b property:depicts ?d } UNION { ?b property:depicts ?d . ?d rdf:type ontology:musical_instrument . ?b rdf:type ontology:painting } } GROUP BY ?d } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q3382191
P180
Q34379 Q340169 Q3305213
USER
And how about upright piano?
(c(Q340169)|c(Q3305213),P180,c(Q34379))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q340169
action find_reverse_tuple_counts
relation P180
type Q34379
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q3382191
relation P180
type Q340169
type Q3305213
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?w ) WHERE { VALUES ( ?o ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } . ?u rdf:type ?o } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { ?s rdf:type ?y . VALUES ( ?y ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } } . ?s property:P180 resource:Q3382191 } } . FILTER ( ?w = ?e ) }
upright piano
action approx
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type media
action find_reverse_tuple_counts
relation depicts
type musical instrument
type painting
action count
action filter_multi_types
action find_reverse
entity upright piano
relation depicts
type media
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?w ) WHERE { VALUES ( ?o ) { ( ontology:media ) ( ontology:painting ) } . ?u rdf:type ?o } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { ?s rdf:type ?y . VALUES ( ?y ) { ( ontology:media ) ( ontology:painting ) } } . ?s property:depicts resource:upright_piano } } . FILTER ( ?w = ?e ) }
[]
musical instrument media painting
Q5994 Q81982 Q218547
SYSTEM
piano, harpsichord, Sigismund Bell
Q8371 Q3382191 Q5994 Q7933058 Q81982 Q190172 Q218547 Q8338 Q1444 Q173453 Q1141589 Q426948 Q871633 Q3500690 Q1798603
(c(Q340169)|c(Q3305213),P180,c(Q34379))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q340169
action find_reverse_tuple_counts
relation P180
type Q34379
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q3382191
relation P180
type Q340169
type Q3305213
[ANSWERS]
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?w ) WHERE { VALUES ( ?o ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } . ?u rdf:type ?o } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { ?s rdf:type ?y . VALUES ( ?y ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } } . ?s property:P180 resource:Q3382191 } } . FILTER ( ?w = ?e ) }
cello upright piano piano Viola caipira harpsichord cymbal Sigismund Bell trumpet organ wind instrument Crotales sistrum Handbell Church bell string instrument
piano harpsichord Sigismund Bell
action approx
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type media
action find_reverse_tuple_counts
relation depicts
type musical instrument
type painting
action count
action filter_multi_types
action find_reverse
entity upright piano
relation depicts
type media
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?w ) WHERE { VALUES ( ?o ) { ( ontology:media ) ( ontology:painting ) } . ?u rdf:type ?o } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { ?s rdf:type ?y . VALUES ( ?y ) { ( ontology:media ) ( ontology:painting ) } } . ?s property:depicts resource:upright_piano } } . FILTER ( ?w = ?e ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5371902
P425
Q34379
USER
Which musical instrument does harpsichordist belong to ?
(c(Q34379),P425,Q5371902)
action filter_type
action find
entity Q5371902
relation P425
type Q34379
[{'concept': 'Q34379'}, 'P425', 'Q5371902']
SELECT DISTINCT ?u WHERE { resource:Q5371902 property:P425 ?u . ?u rdf:type ontology:Q34379 }
harpsichordist
action filter_type
action find
entity harpsichordist
relation field of this occupation
type musical instrument
[{'concept': 'musical instrument'}, 'field of this occupation', 'harpsichordist']
SELECT DISTINCT ?u WHERE { resource:harpsichordist property:field_of_this_occupation ?u . ?u rdf:type ontology:musical_instrument }
[]
musical instrument
Q81982
SYSTEM
harpsichord
Q81982
(c(Q34379),P425,Q5371902)
action filter_type
action find
entity Q5371902
relation P425
type Q34379
[ANSWER]ist belongs to [ANSWER]
[{'concept': 'Q34379'}, 'P425', 'Q5371902']
SELECT DISTINCT ?u WHERE { resource:Q5371902 property:P425 ?u . ?u rdf:type ontology:Q34379 }
harpsichord
Harpsichordist belongs to harpsichord
harpsichord
action filter_type
action find
entity harpsichordist
relation field of this occupation
type musical instrument
[{'concept': 'musical instrument'}, 'field of this occupation', 'harpsichordist']
SELECT DISTINCT ?u WHERE { resource:harpsichordist property:field_of_this_occupation ?u . ?u rdf:type ontology:musical_instrument }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1991580
P22
Q502895
USER
Which person has Nikolaus Lobkowicz as dad ?
(c(Q502895),P22,Q1991580)
action filter_type
action find_reverse
entity Q1991580
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q1991580']
SELECT DISTINCT ?h WHERE { ?h property:P22 resource:Q1991580 . ?h rdf:type ontology:Q502895 }
Nikolaus Lobkowicz
action filter_type
action find_reverse
entity Nikolaus Lobkowicz
relation father
type common name
[{'concept': 'common name'}, 'father', 'Nikolaus Lobkowicz']
SELECT DISTINCT ?h WHERE { ?h property:father resource:Nikolaus_Lobkowicz . ?h rdf:type ontology:common_name }
[]
common name
Q1353004
SYSTEM
Erich von Lobkowicz
Q1353004
(c(Q502895),P22,Q1991580)
action filter_type
action find_reverse
entity Q1991580
relation P22
type Q502895
[ANSWER] has Nikolaus Lobkowicz as dad
[{'concept': 'Q502895'}, 'P22', 'Q1991580']
SELECT DISTINCT ?h WHERE { ?h property:P22 resource:Q1991580 . ?h rdf:type ontology:Q502895 }
Erich von Lobkowicz
Erich von Lobkowicz has Nikolaus Lobkowicz as dad
Erich von Lobkowicz
action filter_type
action find_reverse
entity Nikolaus Lobkowicz
relation father
type common name
[{'concept': 'common name'}, 'father', 'Nikolaus Lobkowicz']
SELECT DISTINCT ?h WHERE { ?h property:father resource:Nikolaus_Lobkowicz . ?h rdf:type ontology:common_name }
[]