Simple Question (Direct)
Simple Question
Q851468
P19
Q56061
USER
Where was Grigory Ivanovich Rossolimo born ?
(Q851468,P19,c(Q56061))
action filter_type
action find
entity Q851468
relation P19
type Q56061
['Q851468', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q851468 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Grigory Ivanovich Rossolimo
action filter_type
action find
entity Grigory Ivanovich Rossolimo
relation place of birth
type administrative territorial entity
['Grigory Ivanovich Rossolimo', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Grigory_Ivanovich_Rossolimo property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1874
SYSTEM
Odessa
Q1874
(Q851468,P19,c(Q56061))
action filter_type
action find
entity Q851468
relation P19
type Q56061
Grigory Ivanovich Rossolimo was born in [ANSWER]
['Q851468', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q851468 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Odessa
Grigory Ivanovich Rossolimo was born in Odessa
Odessa
action filter_type
action find
entity Grigory Ivanovich Rossolimo
relation place of birth
type administrative territorial entity
['Grigory Ivanovich Rossolimo', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Grigory_Ivanovich_Rossolimo property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1874
P6
Q502895
USER
Which people have that administrative territory as their heads of government ?
(Q1874,P6,c(Q502895))
action filter_type
action find
entity Q1874
relation P6
type Q502895
['Q1874', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q1874 property:P6 ?i . ?i rdf:type ontology:Q502895 }
Odessa
action filter_type
action find
entity Odessa
relation head of government
type common name
['Odessa', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Odessa property:head_of_government ?i . ?i rdf:type ontology:common_name }
[]
common name
Q4089962 Q4235602 Q609435
SYSTEM
Rouslan Bodelan, Oleksiy Kostusyev, Eduard Gurwits
Q12162684 Q4235602 Q609435 Q4089962
(Q1874,P6,c(Q502895))
action filter_type
action find
entity Q1874
relation P6
type Q502895
[ANSWERS] have that administrative territory as their heads of government
['Q1874', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q1874 property:P6 ?i . ?i rdf:type ontology:Q502895 }
Gennadiy Trukhanov Oleksiy Kostusyev Eduard Gurwits Rouslan Bodelan
Rouslan Bodelan, Oleksiy Kostusyev and Eduard Gurwits have that administrative territory as their heads of government
Rouslan Bodelan Oleksiy Kostusyev Eduard Gurwits
action filter_type
action find
entity Odessa
relation head of government
type common name
['Odessa', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Odessa property:head_of_government ?i . ?i rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q15855
P6
Q56061
USER
Do Bovec have a government lead by those people ?
(Q15855,P6,Q4089962) (Q15855,P6,Q4235602) (Q15855,P6,Q609435)
action is_in
entity prev_answer
action find
entity Q15855
relation P6
['Q15855', 'P6', 'Q4089962'] ['Q15855', 'P6', 'Q4235602'] ['Q15855', 'P6', 'Q609435']
ASK WHERE { VALUES ( ?f ) { ( resource:Q12162684 ) ( resource:Q4235602 ) ( resource:Q609435 ) } . resource:Q15855 property:P6 ?f }
Bovec
action is_in
entity prev_answer
action find
entity Bovec
relation head of government
['Bovec', 'head of government', 'Rouslan Bodelan'] ['Bovec', 'head of government', 'Oleksiy Kostusyev'] ['Bovec', 'head of government', 'Eduard Gurwits']
ASK WHERE { VALUES ( ?f ) { ( resource:Gennadiy_Trukhanov ) ( resource:Oleksiy_Kostusyev ) ( resource:Eduard_Gurwits ) } . resource:Bovec property:head_of_government ?f }
[]
administrative territorial entity
SYSTEM
NO
(Q15855,P6,Q4089962) (Q15855,P6,Q4235602) (Q15855,P6,Q609435)
action is_in
entity prev_answer
action find
entity Q15855
relation P6
[ANSWER]
['Q15855', 'P6', 'Q4089962'] ['Q15855', 'P6', 'Q4235602'] ['Q15855', 'P6', 'Q609435']
ASK WHERE { VALUES ( ?f ) { ( resource:Q12162684 ) ( resource:Q4235602 ) ( resource:Q609435 ) } . resource:Q15855 property:P6 ?f }
No
action is_in
entity prev_answer
action find
entity Bovec
relation head of government
['Bovec', 'head of government', 'Rouslan Bodelan'] ['Bovec', 'head of government', 'Oleksiy Kostusyev'] ['Bovec', 'head of government', 'Eduard Gurwits']
ASK WHERE { VALUES ( ?f ) { ( resource:Gennadiy_Trukhanov ) ( resource:Oleksiy_Kostusyev ) ( resource:Eduard_Gurwits ) } . resource:Bovec property:head_of_government ?f }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q609435 Q212 Q6389523
P27
Q15617994
USER
Is Eduard Gurwits a native of Ukraine and Kennard Independent School District ?
(Q609435,P27,Q212) (Q609435,P27,Q6389523)
action is_in
entity Q609435
action intersection
action find_reverse
entity Q212
relation P27
action find_reverse
entity Q6389523
relation P27
['Q609435', 'P27', 'Q212'] ['Q609435', 'P27', 'Q6389523']
ASK WHERE { resource:Q609435 property:P27 resource:Q6389523 . resource:Q609435 property:P27 resource:Q212 }
Eduard Gurwits Ukraine Kennard Independent School District
action is_in
entity Eduard Gurwits
action intersection
action find_reverse
entity Ukraine
relation country of citizenship
action find_reverse
entity Kennard Independent School District
relation country of citizenship
['Eduard Gurwits', 'country of citizenship', 'Ukraine'] ['Eduard Gurwits', 'country of citizenship', 'Kennard Independent School District']
ASK WHERE { resource:Eduard_Gurwits property:country_of_citizenship resource:Kennard_Independent_School_District . resource:Eduard_Gurwits property:country_of_citizenship resource:Ukraine }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q609435,P27,Q212) (Q609435,P27,Q6389523)
action is_in
entity Q609435
action intersection
action find_reverse
entity Q212
relation P27
action find_reverse
entity Q6389523
relation P27
[ANSWER]
['Q609435', 'P27', 'Q212'] ['Q609435', 'P27', 'Q6389523']
ASK WHERE { resource:Q609435 property:P27 resource:Q6389523 . resource:Q609435 property:P27 resource:Q212 }
YES and NO respectively
action is_in
entity Eduard Gurwits
action intersection
action find_reverse
entity Ukraine
relation country of citizenship
action find_reverse
entity Kennard Independent School District
relation country of citizenship
['Eduard Gurwits', 'country of citizenship', 'Ukraine'] ['Eduard Gurwits', 'country of citizenship', 'Kennard Independent School District']
ASK WHERE { resource:Eduard_Gurwits property:country_of_citizenship resource:Kennard_Independent_School_District . resource:Eduard_Gurwits property:country_of_citizenship resource:Ukraine }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q173453
P1303
Q34379 Q502895
USER
Which musical instruments can around the same number of people perform with as wind instrument ?
(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 Q173453
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?j ) WHERE { ?h property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { ?p rdf:type ontology:Q34379 . resource:Q173453 property:P1303 ?p } } . FILTER ( ?j = ?b ) }
wind instrument
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity wind instrument
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?j ) WHERE { ?h property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { ?p rdf:type ontology:musical_instrument . resource:wind_instrument property:instrument ?p } } . FILTER ( ?j = ?b ) }
[]
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 Q173453
relation P1303
type Q34379
[ANSWERS] can around the same number of people perform with as wind instrument
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?j ) WHERE { ?h property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { ?p rdf:type ontology:Q34379 . resource:Q173453 property:P1303 ?p } } . FILTER ( ?j = ?b ) }
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 around the same number of people perform with as wind instrument
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 wind instrument
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?j ) WHERE { ?h property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { ?p rdf:type ontology:musical_instrument . resource:wind_instrument property:instrument ?p } } . FILTER ( ?j = ?b ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q81982
P425
Q12737077
USER
Which occupation does that musical instrument belong to ?
(c(Q12737077),P425,Q81982)
action filter_type
action find
entity Q81982
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q81982']
SELECT DISTINCT ?l WHERE { resource:Q81982 property:P425 ?l . ?l rdf:type ontology:Q12737077 }
harpsichord
action filter_type
action find
entity harpsichord
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'harpsichord']
SELECT DISTINCT ?l WHERE { resource:harpsichord property:field_of_this_occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q1178361
SYSTEM
Did you mean davul ?
Q1178361 Q81982 Q1759986
(c(Q12737077),P425,Q1178361) (c(Q12737077),P425,Q81982) (c(Q12737077),P425,Q1759986)
[ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q1178361'] [{'concept': 'Q12737077'}, 'P425', 'Q81982'] [{'concept': 'Q12737077'}, 'P425', 'Q1759986']
SELECT DISTINCT ?l WHERE { resource:Q81982 property:P425 ?l . ?l rdf:type ontology:Q12737077 }
davul harpsichord Wurlitzer electric piano
Did you mean davul ?
davul
[{'concept': 'occupation'}, 'field of this occupation', 'davul'] [{'concept': 'occupation'}, 'field of this occupation', 'harpsichord'] [{'concept': 'occupation'}, 'field of this occupation', 'Wurlitzer electric piano']
SELECT DISTINCT ?l WHERE { resource:harpsichord property:field_of_this_occupation ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant harpsichord. Could you tell me the answer for that?
(c(Q12737077),P425,Q81982)
Q81982
[{'concept': 'Q12737077'}, 'P425', 'Q81982']
[{'concept': 'occupation'}, 'field of this occupation', 'harpsichord']
[]
Q5371902
SYSTEM
harpsichordist
Q5371902
(c(Q12737077),P425,Q81982)
action filter_type
action find
entity Q81982
relation P425
type Q12737077
That musical instrument belongs to the [ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q81982']
SELECT DISTINCT ?l WHERE { resource:Q81982 property:P425 ?l . ?l rdf:type ontology:Q12737077 }
harpsichordist
That musical instrument belongs to the harpsichordist
harpsichordist
action filter_type
action find
entity harpsichord
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'harpsichord']
SELECT DISTINCT ?l WHERE { resource:harpsichord property:field_of_this_occupation ?l . ?l rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1874
P190
Q56061
USER
How many administrative territories are twin cities of Odessa ?
(Q1874,P190,c(Q56061))
action count
action filter_type
action find
entity Q1874
relation P190
type Q56061
['Q1874', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { resource:Q1874 property:P190 ?d . ?d rdf:type ontology:Q56061 }
Odessa
action count
action filter_type
action find
entity Odessa
relation sister city
type administrative territorial entity
['Odessa', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { resource:Odessa property:sister_city ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
23
Q5196 Q47048 Q171882 Q83061 Q21197 Q24826 Q170513 Q776965 Q6506 Q908 Q41621 Q140147 Q580 Q160544 Q8818 Q87 Q3856 Q1449 Q24639 Q5092 Q2280 Q33986 Q168202
(Q1874,P190,c(Q56061))
action count
action filter_type
action find
entity Q1874
relation P190
type Q56061
[ANSWER]
['Q1874', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { resource:Q1874 property:P190 ?d . ?d rdf:type ontology:Q56061 }
Grozny Oulu Larnaca Van Chișinău Liverpool Taganrog Klaipėda Varna Rostov-on-Don Haifa Brest Łódź Heraklion Valencia Alexandria Nicosia Genoa Vancouver Baltimore Minsk Valparaíso Rosh HaAyin
23
action count
action filter_type
action find
entity Odessa
relation sister city
type administrative territorial entity
['Odessa', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { resource:Odessa property:sister_city ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q375875
P190
Q56061
USER
And how about Biblis?
(Q375875,P190,c(Q56061))
action count
action filter_type
action find
entity Q375875
relation P190
type Q56061
['Q375875', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { resource:Q375875 property:P190 ?b . ?b rdf:type ontology:Q56061 }
Biblis
action count
action filter_type
action find
entity Biblis
relation sister city
type administrative territorial entity
['Biblis', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { resource:Biblis property:sister_city ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q992920
(Q375875,P190,c(Q56061))
action count
action filter_type
action find
entity Q375875
relation P190
type Q56061
[ANSWER]
['Q375875', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { resource:Q375875 property:P190 ?b . ?b rdf:type ontology:Q56061 }
Kąty Wrocławskie
1
action count
action filter_type
action find
entity Biblis
relation sister city
type administrative territorial entity
['Biblis', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { resource:Biblis property:sister_city ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q13437
Q56061
USER
And how about Benevento?
(Q13437,P190,c(Q56061))
action count
action filter_type
action find
entity Q13437
relation P190
type Q56061
['Q13437', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { resource:Q13437 property:P190 ?c . ?c rdf:type ontology:Q56061 }
Benevento
action count
action filter_type
action find
entity Benevento
relation sister city
type administrative territorial entity
['Benevento', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { resource:Benevento property:sister_city ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
7
(Q13437,P190,c(Q56061))
action count
action filter_type
action find
entity Q13437
relation P190
type Q56061
[ANSWER]
['Q13437', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { resource:Q13437 property:P190 ?c . ?c rdf:type ontology:Q56061 }
7
action count
action filter_type
action find
entity Benevento
relation sister city
type administrative territorial entity
['Benevento', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { resource:Benevento property:sister_city ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P870
Q34379 Q15850590 Q9748
USER
How many musical instruments were used in the composition of atmost 34 theatrical genres or concertoes ?
(c(Q15850590)|c(Q9748),P870,c(Q34379))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q15850590
action find_reverse_tuple_counts
relation P870
type Q34379
type Q9748
value 34
[[{'concept': 'Q15850590'}, {'concept': 'Q9748'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?g ) WHERE { { ?u property:P870 ?z . ?z rdf:type ontology:Q34379 . ?u rdf:type ontology:Q15850590 } UNION { ?u property:P870 ?z . ?z rdf:type ontology:Q34379 . ?u rdf:type ontology:Q9748 } } GROUP BY ?z } . FILTER ( ?g <= 34 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type theatrical genre
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type concerto
value 34
[[{'concept': 'theatrical genre'}, {'concept': 'concerto'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?g ) WHERE { { ?u property:instrumentation ?z . ?z rdf:type ontology:musical_instrument . ?u rdf:type ontology:theatrical_genre } UNION { ?u property:instrumentation ?z . ?z rdf:type ontology:musical_instrument . ?u rdf:type ontology:concerto } } GROUP BY ?z } . FILTER ( ?g <= 34 ) }
[]
musical instrument theatrical genre concerto
SYSTEM
17
Q80284 Q8371 Q213461 Q46185 Q845193 Q190172 Q189737 Q626035 Q593995 Q521151 Q8338 Q320341 Q1444 Q39777 Q11404 Q206987 Q81982
(c(Q15850590)|c(Q9748),P870,c(Q34379))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q15850590
action find_reverse_tuple_counts
relation P870
type Q34379
type Q9748
value 34
[ANSWER]
[[{'concept': 'Q15850590'}, {'concept': 'Q9748'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?g ) WHERE { { ?u property:P870 ?z . ?z rdf:type ontology:Q34379 . ?u rdf:type ontology:Q15850590 } UNION { ?u property:P870 ?z . ?z rdf:type ontology:Q34379 . ?u rdf:type ontology:Q9748 } } GROUP BY ?z } . FILTER ( ?g <= 34 ) }
viola cello harmonium bass guitar xylorimba cymbal timpani glockenspiel player piano baryton trumpet celesta organ maraca drum vibraphone harpsichord
17
action count
action atmost
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type theatrical genre
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type concerto
value 34
[[{'concept': 'theatrical genre'}, {'concept': 'concerto'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?g ) WHERE { { ?u property:instrumentation ?z . ?z rdf:type ontology:musical_instrument . ?u rdf:type ontology:theatrical_genre } UNION { ?u property:instrumentation ?z . ?z rdf:type ontology:musical_instrument . ?u rdf:type ontology:concerto } } GROUP BY ?z } . FILTER ( ?g <= 34 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1441
Q2342494 Q838948 Q502895
USER
Which people are from the works of max number of collectables or works of art ?
(c(Q502895),P1441,c(Q2342494)|c(Q838948))
action argmax
action union
action find_tuple_counts
relation P1441
type Q502895
type Q2342494
action find_tuple_counts
relation P1441
type Q502895
type Q838948
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q2342494'}, {'concept': 'Q838948'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?z ) { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?b ) WHERE { ?j rdf:type ?x . VALUES ( ?x ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } GROUP BY ?e } } . { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?q ) WHERE { { ?o property:P1441 ?d . ?o rdf:type ontology:Q502895 . ?d rdf:type ontology:Q2342494 } UNION { ?o rdf:type ontology:Q502895 . ?d rdf:type ontology:Q838948 . ?o property:P1441 ?d } } GROUP BY ?o } . FILTER ( ?q = ?z ) }
action argmax
action union
action find_tuple_counts
relation present in work
type common name
type collectable
action find_tuple_counts
relation present in work
type common name
type work of art
[{'concept': 'common name'}, 'present in work', [{'concept': 'collectable'}, {'concept': 'work of art'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?z ) { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?b ) WHERE { ?j rdf:type ?x . VALUES ( ?x ) { ( ontology:collectable ) ( ontology:work_of_art ) } } GROUP BY ?e } } . { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?q ) WHERE { { ?o property:present_in_work ?d . ?o rdf:type ontology:common_name . ?d rdf:type ontology:collectable } UNION { ?o rdf:type ontology:common_name . ?d rdf:type ontology:work_of_art . ?o property:present_in_work ?d } } GROUP BY ?o } . FILTER ( ?q = ?z ) }
[]
collectable work of art common name
Q9077 Q37085
SYSTEM
Moses, Solomon
Q9077 Q37085
(c(Q502895),P1441,c(Q2342494)|c(Q838948))
action argmax
action union
action find_tuple_counts
relation P1441
type Q502895
type Q2342494
action find_tuple_counts
relation P1441
type Q502895
type Q838948
[ANSWERS] are from the works of max number of collectables or works of art
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q2342494'}, {'concept': 'Q838948'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?z ) { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?b ) WHERE { ?j rdf:type ?x . VALUES ( ?x ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } GROUP BY ?e } } . { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?q ) WHERE { { ?o property:P1441 ?d . ?o rdf:type ontology:Q502895 . ?d rdf:type ontology:Q2342494 } UNION { ?o rdf:type ontology:Q502895 . ?d rdf:type ontology:Q838948 . ?o property:P1441 ?d } } GROUP BY ?o } . FILTER ( ?q = ?z ) }
Moses Solomon
Moses and Solomon are from the works of max number of collectables or works of art
Moses Solomon
action argmax
action union
action find_tuple_counts
relation present in work
type common name
type collectable
action find_tuple_counts
relation present in work
type common name
type work of art
[{'concept': 'common name'}, 'present in work', [{'concept': 'collectable'}, {'concept': 'work of art'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?z ) { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?b ) WHERE { ?j rdf:type ?x . VALUES ( ?x ) { ( ontology:collectable ) ( ontology:work_of_art ) } } GROUP BY ?e } } . { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?q ) WHERE { { ?o property:present_in_work ?d . ?o rdf:type ontology:common_name . ?d rdf:type ontology:collectable } UNION { ?o rdf:type ontology:common_name . ?d rdf:type ontology:work_of_art . ?o property:present_in_work ?d } } GROUP BY ?o } . FILTER ( ?q = ?z ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q9077 Q37085
P26
Q502895
USER
Which people are the life partner of Moses and Solomon ?
(c(Q502895),P26,Q9077) (c(Q502895),P26,Q37085)
action union
action filter_type
action find
entity Q9077
relation P26
type Q502895
action filter_type
action find
entity Q37085
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q9077'] [{'concept': 'Q502895'}, 'P26', 'Q37085']
SELECT DISTINCT ?q WHERE { { resource:Q9077 property:P26 ?q . ?q rdf:type ontology:Q502895 } UNION { ?q rdf:type ontology:Q502895 . resource:Q37085 property:P26 ?q } }
Moses Solomon
action union
action filter_type
action find
entity Moses
relation spouse
type common name
action filter_type
action find
entity Solomon
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Moses'] [{'concept': 'common name'}, 'spouse', 'Solomon']
SELECT DISTINCT ?q WHERE { { resource:Moses property:spouse ?q . ?q rdf:type ontology:common_name } UNION { ?q rdf:type ontology:common_name . resource:Solomon property:spouse ?q } }
[]
common name
Q7710759 Q205523 Q7180687
SYSTEM
Tharbis, Zipporah, Pharaoh's daughter
Q7710759 Q205523 Q7180687
(c(Q502895),P26,Q9077) (c(Q502895),P26,Q37085)
action union
action filter_type
action find
entity Q9077
relation P26
type Q502895
action filter_type
action find
entity Q37085
relation P26
type Q502895
[ANSWERS] are the life partner of Moses and Solomon
[{'concept': 'Q502895'}, 'P26', 'Q9077'] [{'concept': 'Q502895'}, 'P26', 'Q37085']
SELECT DISTINCT ?q WHERE { { resource:Q9077 property:P26 ?q . ?q rdf:type ontology:Q502895 } UNION { ?q rdf:type ontology:Q502895 . resource:Q37085 property:P26 ?q } }
Tharbis Zipporah Pharaoh's daughter
Tharbis, Zipporah and Pharaoh's daughter are the life partner of Moses and Solomon
Tharbis Zipporah Pharaoh's daughter
action union
action filter_type
action find
entity Moses
relation spouse
type common name
action filter_type
action find
entity Solomon
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Moses'] [{'concept': 'common name'}, 'spouse', 'Solomon']
SELECT DISTINCT ?q WHERE { { resource:Moses property:spouse ?q . ?q rdf:type ontology:common_name } UNION { ?q rdf:type ontology:common_name . resource:Solomon property:spouse ?q } }
[]