Simple Question (Direct)
Simple Question
Q91589
P106
Q151885
USER
Which concept has Christian Heinrich Spiess as his/her 's career ?
(Q91589,P106,c(Q151885))
action filter_type
action find
entity Q91589
relation P106
type Q151885
['Q91589', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?u WHERE { resource:Q91589 property:P106 ?u . ?u rdf:type ontology:Q151885 }
Christian Heinrich Spiess
action filter_type
action find
entity Christian Heinrich Spiess
relation occupation
type concept
['Christian Heinrich Spiess', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?u WHERE { resource:Christian_Heinrich_Spiess property:occupation ?u . ?u rdf:type ontology:concept }
[]
concept
Q482980
SYSTEM
author
Q482980
(Q91589,P106,c(Q151885))
action filter_type
action find
entity Q91589
relation P106
type Q151885
The [ANSWER] has Christian Heinrich Spiess as his/her 's career
['Q91589', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?u WHERE { resource:Q91589 property:P106 ?u . ?u rdf:type ontology:Q151885 }
author
The author has Christian Heinrich Spiess as his/her 's career
author
action filter_type
action find
entity Christian Heinrich Spiess
relation occupation
type concept
['Christian Heinrich Spiess', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?u WHERE { resource:Christian_Heinrich_Spiess property:occupation ?u . ?u rdf:type ontology:concept }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q91589 Q12313022
P27
Q1048835
USER
How many political territories are Christian Heinrich Spiess or Fritz Brun a civilian of ?
(Q91589,P27,c(Q1048835)) (Q12313022,P27,c(Q1048835))
action count
action union
action filter_type
action find
entity Q91589
relation P27
type Q1048835
action filter_type
action find
entity Q12313022
relation P27
type Q1048835
['Q91589', 'P27', {'concept': 'Q1048835'}] ['Q12313022', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { ?e property:P27 ?s . VALUES ( ?e ) { ( resource:Q91589 ) ( resource:Q12313022 ) } }
Christian Heinrich Spiess Fritz Brun
action count
action union
action filter_type
action find
entity Christian Heinrich Spiess
relation country of citizenship
type political territorial entity
action filter_type
action find
entity Fritz Brun
relation country of citizenship
type political territorial entity
['Christian Heinrich Spiess', 'country of citizenship', {'concept': 'political territorial entity'}] ['Fritz Brun', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { ?e property:country_of_citizenship ?s . VALUES ( ?e ) { ( resource:Christian_Heinrich_Spiess ) ( resource:Fritz_Brun ) } }
[]
political territorial entity
SYSTEM
2
Q183 Q35
(Q91589,P27,c(Q1048835)) (Q12313022,P27,c(Q1048835))
action count
action union
action filter_type
action find
entity Q91589
relation P27
type Q1048835
action filter_type
action find
entity Q12313022
relation P27
type Q1048835
[ANSWER]
['Q91589', 'P27', {'concept': 'Q1048835'}] ['Q12313022', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { ?e property:P27 ?s . VALUES ( ?e ) { ( resource:Q91589 ) ( resource:Q12313022 ) } }
Germany Denmark
2
action count
action union
action filter_type
action find
entity Christian Heinrich Spiess
relation country of citizenship
type political territorial entity
action filter_type
action find
entity Fritz Brun
relation country of citizenship
type political territorial entity
['Christian Heinrich Spiess', 'country of citizenship', {'concept': 'political territorial entity'}] ['Fritz Brun', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { ?e property:country_of_citizenship ?s . VALUES ( ?e ) { ( resource:Christian_Heinrich_Spiess ) ( resource:Fritz_Brun ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q12313022
P21 P40
Q502895
USER
Which people have Fritz Brun as a child and have male as the sex ?
AND((c(Q502895),P40,Q12313022), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q12313022
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q12313022'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?l WHERE { ?l property:P21 resource:Q6581097 . ?l property:P40 resource:Q12313022 . ?l rdf:type ontology:Q502895 }
male Fritz Brun
action filter_type
action intersection
action find_reverse
entity Fritz Brun
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Fritz Brun'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?l WHERE { ?l property:gender resource:male . ?l property:child resource:Fritz_Brun . ?l rdf:type ontology:common_name }
[]
common name
Q12304944
SYSTEM
C.F.B. Brun
Q12304944
AND((c(Q502895),P40,Q12313022), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q12313022
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Fritz Brun as a child and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q12313022'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?l WHERE { ?l property:P21 resource:Q6581097 . ?l property:P40 resource:Q12313022 . ?l rdf:type ontology:Q502895 }
C.F.B. Brun
C.F.B. Brun have Fritz Brun as a child and have male as the sex
C.F.B. Brun
action filter_type
action intersection
action find_reverse
entity Fritz Brun
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Fritz Brun'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?l WHERE { ?l property:gender resource:male . ?l property:child resource:Fritz_Brun . ?l rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q12304944
P22
Q16335296 Q502895
USER
How many historical professions or people have C.F.B. Brun as a father ?
(c(Q16335296),P22,Q12304944) (c(Q502895),P22,Q12304944)
action count
action union
action filter_type
action find_reverse
entity Q12304944
relation P22
type Q16335296
action filter_type
action find_reverse
entity Q12304944
relation P22
type Q502895
[{'concept': 'Q16335296'}, 'P22', 'Q12304944'] [{'concept': 'Q502895'}, 'P22', 'Q12304944']
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { ?s rdf:type ?k . VALUES ( ?k ) { ( ontology:Q16335296 ) ( ontology:Q502895 ) } }
C.F.B. Brun
action count
action union
action filter_type
action find_reverse
entity C.F.B. Brun
relation father
type historical profession
action filter_type
action find_reverse
entity C.F.B. Brun
relation father
type common name
[{'concept': 'historical profession'}, 'father', 'C.F.B. Brun'] [{'concept': 'common name'}, 'father', 'C.F.B. Brun']
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { ?s rdf:type ?k . VALUES ( ?k ) { ( ontology:historical_profession ) ( ontology:common_name ) } }
[]
historical profession common name
SYSTEM
4
Q12313022 Q12306652 Q12300947 Q12304920
(c(Q16335296),P22,Q12304944) (c(Q502895),P22,Q12304944)
action count
action union
action filter_type
action find_reverse
entity Q12304944
relation P22
type Q16335296
action filter_type
action find_reverse
entity Q12304944
relation P22
type Q502895
[ANSWER]
[{'concept': 'Q16335296'}, 'P22', 'Q12304944'] [{'concept': 'Q502895'}, 'P22', 'Q12304944']
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { ?s rdf:type ?k . VALUES ( ?k ) { ( ontology:Q16335296 ) ( ontology:Q502895 ) } }
Fritz Brun Constantin Brun Alexander Brun C.A.A.F.J. Brun
4
action count
action union
action filter_type
action find_reverse
entity C.F.B. Brun
relation father
type historical profession
action filter_type
action find_reverse
entity C.F.B. Brun
relation father
type common name
[{'concept': 'historical profession'}, 'father', 'C.F.B. Brun'] [{'concept': 'common name'}, 'father', 'C.F.B. Brun']
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { ?s rdf:type ?k . VALUES ( ?k ) { ( ontology:historical_profession ) ( ontology:common_name ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q46639
P17
Q15617994
USER
How many administrative territories do Mozdok belong to ?
(Q46639,P17,c(Q15617994))
action count
action filter_type
action find
entity Q46639
relation P17
type Q15617994
['Q46639', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { resource:Q46639 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Mozdok
action count
action filter_type
action find
entity Mozdok
relation country
type designation for an administrative territorial entity
['Mozdok', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { resource:Mozdok property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q159
(Q46639,P17,c(Q15617994))
action count
action filter_type
action find
entity Q46639
relation P17
type Q15617994
[ANSWER]
['Q46639', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { resource:Q46639 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Russia
1
action count
action filter_type
action find
entity Mozdok
relation country
type designation for an administrative territorial entity
['Mozdok', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { resource:Mozdok property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q7988005
Q15617994
USER
And how about Western Kentucky University Heating Plant?
(Q7988005,P17,c(Q15617994))
action count
action filter_type
action find
entity Q7988005
relation P17
type Q15617994
['Q7988005', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { ?q rdf:type ontology:Q15617994 . resource:Q7988005 property:P17 ?q }
Western Kentucky University Heating Plant
action count
action filter_type
action find
entity Western Kentucky University Heating Plant
relation country
type designation for an administrative territorial entity
['Western Kentucky University Heating Plant', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Western_Kentucky_University_Heating_Plant property:country ?q }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q7988005,P17,c(Q15617994))
action count
action filter_type
action find
entity Q7988005
relation P17
type Q15617994
[ANSWER]
['Q7988005', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { ?q rdf:type ontology:Q15617994 . resource:Q7988005 property:P17 ?q }
1
action count
action filter_type
action find
entity Western Kentucky University Heating Plant
relation country
type designation for an administrative territorial entity
['Western Kentucky University Heating Plant', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Western_Kentucky_University_Heating_Plant property:country ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7988005
P1435
Q2065736
USER
Which cultural property gives the heritage status of that geographic location ?
action filter_type
action find
entity Q7988005
relation P1435
type Q2065736
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q2065736 . resource:Q7988005 property:P1435 ?v }
Western Kentucky University Heating Plant
action filter_type
action find
entity Western Kentucky University Heating Plant
relation heritage status
type cultural property
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:cultural_property . resource:Western_Kentucky_University_Heating_Plant property:heritage_status ?v }
[]
cultural property
Q19558910
SYSTEM
place listed on the National Register of Historic Places
Q19558910
action filter_type
action find
entity Q7988005
relation P1435
type Q2065736
[ANSWER] gives the heritage status of that geographic location
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q2065736 . resource:Q7988005 property:P1435 ?v }
place listed on the National Register of Historic Places
Place listed on the National Register of Historic Places gives the heritage status of that geographic location
place listed on the National Register of Historic Places
action filter_type
action find
entity Western Kentucky University Heating Plant
relation heritage status
type cultural property
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:cultural_property . resource:Western_Kentucky_University_Heating_Plant property:heritage_status ?v }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q14714695 Q7988005
P1435
Q2065736
USER
Or DOE Bridge over Laramie River?
OR((Q7988005,P1435,c(Q2065736)), (Q14714695,P1435,c(Q2065736)))
action filter_type
action union
action find
entity Q7988005
relation P1435
action find
entity Q14714695
relation P1435
type Q2065736
{'OR': [['Q7988005', 'P1435', {'concept': 'Q2065736'}], ['Q14714695', 'P1435', {'concept': 'Q2065736'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?a ) { ( resource:Q7988005 ) ( resource:Q14714695 ) } . ?a property:P1435 ?v } . ?v rdf:type ontology:Q2065736 }
DOE Bridge over Laramie River Western Kentucky University Heating Plant
action filter_type
action union
action find
entity Western Kentucky University Heating Plant
relation heritage status
action find
entity DOE Bridge over Laramie River
relation heritage status
type cultural property
{'OR': [['Western Kentucky University Heating Plant', 'heritage status', {'concept': 'cultural property'}], ['DOE Bridge over Laramie River', 'heritage status', {'concept': 'cultural property'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?a ) { ( resource:Western_Kentucky_University_Heating_Plant ) ( resource:DOE_Bridge_over_Laramie_River ) } . ?a property:heritage_status ?v } . ?v rdf:type ontology:cultural_property }
[]
cultural property
Q19558910
SYSTEM
place listed on the National Register of Historic Places
Q19558910
OR((Q7988005,P1435,c(Q2065736)), (Q14714695,P1435,c(Q2065736)))
action filter_type
action union
action find
entity Q7988005
relation P1435
action find
entity Q14714695
relation P1435
type Q2065736
[ANSWER]
{'OR': [['Q7988005', 'P1435', {'concept': 'Q2065736'}], ['Q14714695', 'P1435', {'concept': 'Q2065736'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?a ) { ( resource:Q7988005 ) ( resource:Q14714695 ) } . ?a property:P1435 ?v } . ?v rdf:type ontology:Q2065736 }
place listed on the National Register of Historic Places
place listed on the National Register of Historic Places
action filter_type
action union
action find
entity Western Kentucky University Heating Plant
relation heritage status
action find
entity DOE Bridge over Laramie River
relation heritage status
type cultural property
{'OR': [['Western Kentucky University Heating Plant', 'heritage status', {'concept': 'cultural property'}], ['DOE Bridge over Laramie River', 'heritage status', {'concept': 'cultural property'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?a ) { ( resource:Western_Kentucky_University_Heating_Plant ) ( resource:DOE_Bridge_over_Laramie_River ) } . ?a property:heritage_status ?v } . ?v rdf:type ontology:cultural_property }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q19558910 Q30 Q5596390
P17
Q15617994
USER
Is that cultural property present in United States of America and Grant Parish School Board ?
(Q19558910,P17,Q30) (Q19558910,P17,Q5596390)
action is_in
entity Q19558910
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q5596390
relation P17
['Q19558910', 'P17', 'Q30'] ['Q19558910', 'P17', 'Q5596390']
ASK WHERE { resource:Q19558910 property:P17 resource:Q30 . resource:Q19558910 property:P17 resource:Q5596390 }
place listed on the National Register of Historic Places United States of America Grant Parish School Board
action is_in
entity place listed on the National Register of Historic Places
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity Grant Parish School Board
relation country
['place listed on the National Register of Historic Places', 'country', 'United States of America'] ['place listed on the National Register of Historic Places', 'country', 'Grant Parish School Board']
ASK WHERE { resource:place_listed_on_the_National_Register_of_Historic_Places property:country resource:United_States_of_America . resource:place_listed_on_the_National_Register_of_Historic_Places property:country resource:Grant_Parish_School_Board }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q19558910,P17,Q30) (Q19558910,P17,Q5596390)
action is_in
entity Q19558910
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q5596390
relation P17
[ANSWER]
['Q19558910', 'P17', 'Q30'] ['Q19558910', 'P17', 'Q5596390']
ASK WHERE { resource:Q19558910 property:P17 resource:Q30 . resource:Q19558910 property:P17 resource:Q5596390 }
YES and NO respectively
action is_in
entity place listed on the National Register of Historic Places
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity Grant Parish School Board
relation country
['place listed on the National Register of Historic Places', 'country', 'United States of America'] ['place listed on the National Register of Historic Places', 'country', 'Grant Parish School Board']
ASK WHERE { resource:place_listed_on_the_National_Register_of_Historic_Places property:country resource:United_States_of_America . resource:place_listed_on_the_National_Register_of_Historic_Places property:country resource:Grant_Parish_School_Board }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q2563510
P1303
Q34379 Q502895
USER
Which musical instruments do around the same number of people know to play as steel-string acoustic guitar ?
(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 Q2563510
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?g ) WHERE { ?y property:P1303 ?z . ?z rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?z } . FILTER ( ?g = ?r ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { resource:Q2563510 property:P1303 ?v . ?v rdf:type ontology:Q34379 } } }
steel-string acoustic guitar
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity steel-string acoustic guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?g ) WHERE { ?y property:instrument ?z . ?z rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?z } . FILTER ( ?g = ?r ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { resource:steel-string_acoustic_guitar property:instrument ?v . ?v rdf:type ontology:musical_instrument } } }
[]
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 Q2563510
relation P1303
type Q34379
[ANSWERS] around the same number of people know to play as steel-string acoustic guitar
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?g ) WHERE { ?y property:P1303 ?z . ?z rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?z } . FILTER ( ?g = ?r ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { resource:Q2563510 property:P1303 ?v . ?v rdf:type ontology:Q34379 } } }
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 around the same number of people know to play as steel-string acoustic guitar
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 steel-string acoustic guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?g ) WHERE { ?y property:instrument ?z . ?z rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?z } . FILTER ( ?g = ?r ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { resource:steel-string_acoustic_guitar property:instrument ?v . ?v rdf:type ontology:musical_instrument } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1444
P1303
Q34379 Q502895
USER
And how about organ?
(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 Q1444
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?p ) AS ?b ) WHERE { ?p property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?p rdf:type ontology:Q502895 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { resource:Q1444 property:P1303 ?m . ?m rdf:type ontology:Q34379 } } . FILTER ( ?b = ?y ) }
organ
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity organ
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?p ) AS ?b ) WHERE { ?p property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?p rdf:type ontology:common_name } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { resource:organ property:instrument ?m . ?m rdf:type ontology:musical_instrument } } . FILTER ( ?b = ?y ) }
[]
musical instrument common name
Q46185 Q8338 Q1444
SYSTEM
bass guitar, trumpet, organ
Q46185 Q8338 Q1444 Q128309
(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 Q1444
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?p ) AS ?b ) WHERE { ?p property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?p rdf:type ontology:Q502895 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { resource:Q1444 property:P1303 ?m . ?m rdf:type ontology:Q34379 } } . FILTER ( ?b = ?y ) }
bass guitar trumpet organ drum kit
bass guitar trumpet organ
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity organ
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?p ) AS ?b ) WHERE { ?p property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?p rdf:type ontology:common_name } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { resource:organ property:instrument ?m . ?m rdf:type ontology:musical_instrument } } . FILTER ( ?b = ?y ) }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P870
Q34379 Q9748
USER
Which musical instruments are the instrumentations used in around the same number of concertoes as that musical instrument ?
(c(Q9748),P870,c(Q34379))
[{'concept': 'Q9748'}, 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { ?z property:Q617028 ?y . ?z rdf:type ontology:Q9748 . ?y rdf:type ontology:Q34379 }
[{'concept': 'concerto'}, 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { ?z property:instrumentation ?y . ?z rdf:type ontology:concerto . ?y rdf:type ontology:musical_instrument }
[]
musical instrument concerto
Comparative|More/Less|Single entity type|Clarification
Q8338
SYSTEM
Did you mean trumpet ?
(c(Q9748),P870,c(Q34379))
[ANSWER]
[{'concept': 'Q9748'}, 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { ?z property:Q617028 ?y . ?z rdf:type ontology:Q9748 . ?y rdf:type ontology:Q34379 }
Did you mean trumpet ?
trumpet
[{'concept': 'concerto'}, 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { ?z property:instrumentation ?y . ?z rdf:type ontology:concerto . ?y rdf:type ontology:musical_instrument }
[]
Comparative Reasoning (All)
USER
No, I meant bass guitar. Could you tell me the answer for that?
(c(Q9748),P870,c(Q34379))
Q46185
[{'concept': 'Q9748'}, 'P870', {'concept': 'Q34379'}]
[{'concept': 'concerto'}, 'instrumentation', {'concept': 'musical instrument'}]
[]
Q521151 Q81982 Q80284
SYSTEM
baryton, harpsichord, viola
Q80284 Q8371 Q213461 Q46185 Q845193 Q190172 Q189737 Q626035 Q593995 Q521151 Q8338 Q320341 Q1444 Q39777 Q11404 Q206987 Q81982
(c(Q9748),P870,c(Q34379))
[ANSWERS] are the instrumentations used in around the same number of concertoes as that musical instrument
[{'concept': 'Q9748'}, 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { ?z property:Q617028 ?y . ?z rdf:type ontology:Q9748 . ?y rdf:type ontology:Q34379 }
viola cello harmonium bass guitar xylorimba cymbal timpani glockenspiel player piano baryton trumpet celesta organ maraca drum vibraphone harpsichord
Baryton, harpsichord and viola are the instrumentations used in around the same number of concertoes as that musical instrument
baryton harpsichord viola
[{'concept': 'concerto'}, 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { ?z property:instrumentation ?y . ?z rdf:type ontology:concerto . ?y rdf:type ontology:musical_instrument }
[]
Clarification
Simple Question|Single Entity|Indirect
Q81982
P921
Q2342494
USER
Which collectable was mainly based on that musical instrument ?
(c(Q2342494),P921,Q81982)
action filter_type
action find_reverse
entity Q81982
relation P921
type Q2342494
[{'concept': 'Q2342494'}, 'P921', 'Q81982']
SELECT DISTINCT ?m WHERE { ?m property:P921 resource:Q81982 . ?m rdf:type ontology:Q2342494 }
harpsichord
action filter_type
action find_reverse
entity harpsichord
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'harpsichord']
SELECT DISTINCT ?m WHERE { ?m property:main_subject resource:harpsichord . ?m rdf:type ontology:collectable }
[]
collectable
Clarification for simple ques.
Q81982
SYSTEM
Did you mean harpsichord ?
Q521151 Q81982 Q80284
(c(Q2342494),P921,Q521151) (c(Q2342494),P921,Q81982) (c(Q2342494),P921,Q80284)
[ANSWER]
[{'concept': 'Q2342494'}, 'P921', 'Q521151'] [{'concept': 'Q2342494'}, 'P921', 'Q81982'] [{'concept': 'Q2342494'}, 'P921', 'Q80284']
SELECT DISTINCT ?m WHERE { ?m property:P921 resource:Q81982 . ?m rdf:type ontology:Q2342494 }
baryton harpsichord viola
Did you mean harpsichord ?
harpsichord
[{'concept': 'collectable'}, 'main subject', 'baryton'] [{'concept': 'collectable'}, 'main subject', 'harpsichord'] [{'concept': 'collectable'}, 'main subject', 'viola']
SELECT DISTINCT ?m WHERE { ?m property:main_subject resource:harpsichord . ?m rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q2342494),P921,Q81982)
[{'concept': 'Q2342494'}, 'P921', 'Q81982']
[{'concept': 'collectable'}, 'main subject', 'harpsichord']
[]
Q3817964
SYSTEM
L'art de toucher le clavecin
Q3817964
(c(Q2342494),P921,Q81982)
action filter_type
action find_reverse
entity Q81982
relation P921
type Q2342494
[ANSWER] was mainly based on that musical instrument
[{'concept': 'Q2342494'}, 'P921', 'Q81982']
SELECT DISTINCT ?m WHERE { ?m property:P921 resource:Q81982 . ?m rdf:type ontology:Q2342494 }
L'art de toucher le clavecin
L'art de toucher le clavecin was mainly based on that musical instrument
L'art de toucher le clavecin
action filter_type
action find_reverse
entity harpsichord
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'harpsichord']
SELECT DISTINCT ?m WHERE { ?m property:main_subject resource:harpsichord . ?m rdf:type ontology:collectable }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q3817964 Q8033043 Q142
P495
Q15617994
USER
Does that collectable have Woodlawn–Rison School District and France as its place of origin ?
(Q3817964,P495,Q8033043) (Q3817964,P495,Q142)
action is_in
entity Q3817964
action intersection
action find_reverse
entity Q8033043
relation P495
action find_reverse
entity Q142
relation P495
['Q3817964', 'P495', 'Q8033043'] ['Q3817964', 'P495', 'Q142']
ASK WHERE { resource:Q3817964 property:P495 resource:Q8033043 . resource:Q3817964 property:P495 resource:Q142 }
L'art de toucher le clavecin Woodlawn–Rison School District France
action is_in
entity L'art de toucher le clavecin
action intersection
action find_reverse
entity Woodlawn–Rison School District
relation country of origin
action find_reverse
entity France
relation country of origin
["L'art de toucher le clavecin", 'country of origin', 'Woodlawn–Rison School District'] ["L'art de toucher le clavecin", 'country of origin', 'France']
ASK WHERE { resource:L'art_de_toucher_le_clavecin property:country_of_origin resource:Woodlawn–Rison_School_District . resource:L'art_de_toucher_le_clavecin property:country_of_origin resource:France }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q3817964,P495,Q8033043) (Q3817964,P495,Q142)
action is_in
entity Q3817964
action intersection
action find_reverse
entity Q8033043
relation P495
action find_reverse
entity Q142
relation P495
[ANSWER]
['Q3817964', 'P495', 'Q8033043'] ['Q3817964', 'P495', 'Q142']
ASK WHERE { resource:Q3817964 property:P495 resource:Q8033043 . resource:Q3817964 property:P495 resource:Q142 }
NO and YES respectively
action is_in
entity L'art de toucher le clavecin
action intersection
action find_reverse
entity Woodlawn–Rison School District
relation country of origin
action find_reverse
entity France
relation country of origin
["L'art de toucher le clavecin", 'country of origin', 'Woodlawn–Rison School District'] ["L'art de toucher le clavecin", 'country of origin', 'France']
ASK WHERE { resource:L'art_de_toucher_le_clavecin property:country_of_origin resource:Woodlawn–Rison_School_District . resource:L'art_de_toucher_le_clavecin property:country_of_origin resource:France }
[]