Simple Question (Direct)
Simple Question
Q6835847
P19
Q7275
USER
Which state was Michal Zachariáš born at ?
(Q6835847,P19,c(Q7275))
action filter_type
action find
entity Q6835847
relation P19
type Q7275
['Q6835847', 'P19', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { resource:Q6835847 property:P19 ?p . ?p rdf:type ontology:Q7275 }
Michal Zachariáš
action filter_type
action find
entity Michal Zachariáš
relation place of birth
type state
['Michal Zachariáš', 'place of birth', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { resource:Michal_Zachariáš property:place_of_birth ?p . ?p rdf:type ontology:state }
[]
state
Q33946
SYSTEM
Czechoslovakia
Q33946
(Q6835847,P19,c(Q7275))
action filter_type
action find
entity Q6835847
relation P19
type Q7275
Michal Zachariáš was born in [ANSWER]
['Q6835847', 'P19', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { resource:Q6835847 property:P19 ?p . ?p rdf:type ontology:Q7275 }
Czechoslovakia
Michal Zachariáš was born in Czechoslovakia
Czechoslovakia
action filter_type
action find
entity Michal Zachariáš
relation place of birth
type state
['Michal Zachariáš', 'place of birth', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { resource:Michal_Zachariáš property:place_of_birth ?p . ?p rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q33946
P35
Q502895
USER
Who are the chiefs of state of that one ?
(Q33946,P35,c(Q502895))
action filter_type
action find
entity Q33946
relation P35
type Q502895
['Q33946', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q33946 property:P35 ?y . ?y rdf:type ontology:Q502895 }
Czechoslovakia
action filter_type
action find
entity Czechoslovakia
relation head of state
type common name
['Czechoslovakia', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Czechoslovakia property:head_of_state ?y . ?y rdf:type ontology:common_name }
[]
common name
Q36233 Q78492 Q152274
SYSTEM
Václav Havel, Tomáš Garrigue Masaryk, Edvard Beneš
Q296054 Q156494 Q310000 Q157651 Q78492 Q371854 Q152274 Q36233 Q156502
(Q33946,P35,c(Q502895))
action filter_type
action find
entity Q33946
relation P35
type Q502895
The chiefs of state of that one are [ANSWERS]
['Q33946', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q33946 property:P35 ?y . ?y rdf:type ontology:Q502895 }
Klement Gottwald Antonín Novotný Ludvík Svoboda Gustáv Husák Tomáš Garrigue Masaryk Antonín Zápotocký Edvard Beneš Václav Havel Emil Hácha
The chiefs of state of that one are Václav Havel, Tomáš Garrigue Masaryk and Edvard Beneš
Václav Havel Tomáš Garrigue Masaryk Edvard Beneš
action filter_type
action find
entity Czechoslovakia
relation head of state
type common name
['Czechoslovakia', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Czechoslovakia property:head_of_state ?y . ?y rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can exactly 1 person perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?w ) AS ?s ) WHERE { ?w property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?w rdf:type ontology:Q502895 } GROUP BY ?v } . FILTER ( ?s = 1 ) }
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?w ) AS ?s ) WHERE { ?w property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?w rdf:type ontology:common_name } GROUP BY ?v } . FILTER ( ?s = 1 ) }
[]
musical instrument common name
SYSTEM
33
Q890073 Q1178361 Q604538 Q2660670 Q39777 Q678090 Q490054 Q873588 Q593995 Q1327500 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q1024685 Q816793 Q244976 Q1179017 Q320341 Q669370 Q290951 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q744831 Q963150 Q16155191 Q644440 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?w ) AS ?s ) WHERE { ?w property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?w rdf:type ontology:Q502895 } GROUP BY ?v } . FILTER ( ?s = 1 ) }
Body percussion davul Temple block Irish bouzouki maraca Twelve-string guitar Ondioline Jinghu player piano electronic musical instrument Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cabasa Bendir bodhrán Daxophone celesta gusle Kamancheh Hardanger fiddle transverse flute baritone horn morin khuur Timbales Mridangam tenor guitar Saraswati veena Lap steel guitar Kayamb Paraguayan harp
33
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?w ) AS ?s ) WHERE { ?w property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?w rdf:type ontology:common_name } GROUP BY ?v } . FILTER ( ?s = 1 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1024685
P1303
Q34379 Q502895
USER
Which musical instruments can greater number of people perform with than cabasa ?
(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 Q1024685
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?o ) WHERE { ?g property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { resource:Q1024685 property:P1303 ?c . ?c rdf:type ontology:Q34379 } } . FILTER ( ?o > ?b ) }
cabasa
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity cabasa
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?o ) WHERE { ?g property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { resource:cabasa property:instrument ?c . ?c rdf:type ontology:musical_instrument } } . FILTER ( ?o > ?b ) }
[]
musical instrument common name
Q5994 Q81982 Q862501
SYSTEM
piano, harpsichord, ondes Martenot
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 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 Q1024685
relation P1303
type Q34379
[ANSWERS] can greater number of people perform with than cabasa
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?o ) WHERE { ?g property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { resource:Q1024685 property:P1303 ?c . ?c rdf:type ontology:Q34379 } } . FILTER ( ?o > ?b ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
Piano, harpsichord and ondes Martenot can greater number of people perform with than cabasa
piano harpsichord ondes Martenot
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity cabasa
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?o ) WHERE { ?g property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { resource:cabasa property:instrument ?c . ?c rdf:type ontology:musical_instrument } } . FILTER ( ?o > ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q862501
P1303
Q34379 Q502895
USER
And what about ondes Martenot?
(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 Q862501
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?q ) WHERE { ?r property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { resource:Q862501 property:P1303 ?o . ?o rdf:type ontology:Q34379 } } . FILTER ( ?q > ?h ) }
ondes Martenot
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity ondes Martenot
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?q ) WHERE { ?r property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { resource:ondes_Martenot property:instrument ?o . ?o rdf:type ontology:musical_instrument } } . FILTER ( ?q > ?h ) }
[]
musical instrument common name
Q5994 Q81982 Q80284
SYSTEM
piano, harpsichord, viola
Q80284 Q46185 Q80019 Q2563510 Q5994 Q81982 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q213100 Q626035 Q742180 Q1444 Q220971 Q128309 Q726306 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 Q862501
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?q ) WHERE { ?r property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { resource:Q862501 property:P1303 ?o . ?o rdf:type ontology:Q34379 } } . FILTER ( ?q > ?h ) }
viola bass guitar double bass steel-string acoustic guitar piano harpsichord vibraphone timpani trumpet cello violin harmonium upright piano tabla glockenspiel viola d'amore organ marimba drum kit erhu electronic keyboard drum
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 ondes Martenot
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?q ) WHERE { ?r property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { resource:ondes_Martenot property:instrument ?o . ?o rdf:type ontology:musical_instrument } } . FILTER ( ?q > ?h ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q80284
P425
Q12737077
USER
Which occupation does that musical instrument belong to ?
(c(Q12737077),P425,Q80284)
action filter_type
action find_reverse
entity Q80284
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q80284']
SELECT DISTINCT ?r WHERE { ?r property:P425 resource:Q80284 . ?r rdf:type ontology:Q12737077 }
viola
action filter_type
action find_reverse
entity viola
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'viola']
SELECT DISTINCT ?r WHERE { ?r property:field_of_this_occupation resource:viola . ?r rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q81982
SYSTEM
Did you mean harpsichord ?
Q5994 Q81982 Q80284
(c(Q12737077),P425,Q5994) (c(Q12737077),P425,Q81982) (c(Q12737077),P425,Q80284)
[ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q5994'] [{'concept': 'Q12737077'}, 'P425', 'Q81982'] [{'concept': 'Q12737077'}, 'P425', 'Q80284']
SELECT DISTINCT ?r WHERE { ?r property:P425 resource:Q80284 . ?r rdf:type ontology:Q12737077 }
piano harpsichord viola
Did you mean harpsichord ?
harpsichord
[{'concept': 'occupation'}, 'field of this occupation', 'piano'] [{'concept': 'occupation'}, 'field of this occupation', 'harpsichord'] [{'concept': 'occupation'}, 'field of this occupation', 'viola']
SELECT DISTINCT ?r WHERE { ?r property:field_of_this_occupation resource:viola . ?r rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant viola. Could you tell me the answer for that?
(c(Q12737077),P425,Q80284)
Q80284
[{'concept': 'Q12737077'}, 'P425', 'Q80284']
[{'concept': 'occupation'}, 'field of this occupation', 'viola']
[]
Q899758
SYSTEM
violist
Q899758
(c(Q12737077),P425,Q80284)
action filter_type
action find_reverse
entity Q80284
relation P425
type Q12737077
That musical instrument belongs to the [ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q80284']
SELECT DISTINCT ?r WHERE { ?r property:P425 resource:Q80284 . ?r rdf:type ontology:Q12737077 }
violist
That musical instrument belongs to the violist
violist
action filter_type
action find_reverse
entity viola
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'viola']
SELECT DISTINCT ?r WHERE { ?r property:field_of_this_occupation resource:viola . ?r rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q899758
P425
Q34379
USER
Which musical instrument has that one as the associated field of occupation ?
(Q899758,P425,c(Q34379))
action filter_type
action find
entity Q899758
relation P425
type Q34379
['Q899758', 'P425', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { resource:Q899758 property:P425 ?p . ?p rdf:type ontology:Q34379 }
violist
action filter_type
action find
entity violist
relation field of this occupation
type musical instrument
['violist', 'field of this occupation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { resource:violist property:field_of_this_occupation ?p . ?p rdf:type ontology:musical_instrument }
[]
musical instrument
Q80284
SYSTEM
viola
Q80284
(Q899758,P425,c(Q34379))
action filter_type
action find
entity Q899758
relation P425
type Q34379
[ANSWER] has that one as the associated field of occupation
['Q899758', 'P425', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { resource:Q899758 property:P425 ?p . ?p rdf:type ontology:Q34379 }
viola
Viola has that one as the associated field of occupation
viola
action filter_type
action find
entity violist
relation field of this occupation
type musical instrument
['violist', 'field of this occupation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { resource:violist property:field_of_this_occupation ?p . ?p rdf:type ontology:musical_instrument }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q25885222
P1441
Q838948 Q15416 Q502895
USER
How many people are from the works of approximately the same number of works of art or television programs as James Harcourt ?
(c(Q502895),P1441,c(Q838948)|c(Q15416))
action count
action approx
action union
action find_tuple_counts
relation P1441
type Q502895
type Q838948
action find_tuple_counts
relation P1441
type Q502895
type Q15416
action count
action filter_multi_types
action find
entity Q25885222
relation P1441
type Q838948
type Q15416
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q838948'}, {'concept': 'Q15416'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) ?p WHERE { { ?s rdf:type ontology:Q838948 . ?p rdf:type ontology:Q502895 . ?p property:P1441 ?s } UNION { ?p rdf:type ontology:Q502895 . ?s rdf:type ontology:Q15416 . ?p property:P1441 ?s } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { resource:Q25885222 property:P1441 ?d . { { ?d rdf:type ontology:Q15416 } UNION { ?d rdf:type ontology:Q838948 } } } } . FILTER ( ?i = ?n ) }
James Harcourt
action count
action approx
action union
action find_tuple_counts
relation present in work
type common name
type work of art
action find_tuple_counts
relation present in work
type common name
type television program
action count
action filter_multi_types
action find
entity James Harcourt
relation present in work
type work of art
type television program
[{'concept': 'common name'}, 'present in work', [{'concept': 'work of art'}, {'concept': 'television program'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) ?p WHERE { { ?s rdf:type ontology:work_of_art . ?p rdf:type ontology:common_name . ?p property:present_in_work ?s } UNION { ?p rdf:type ontology:common_name . ?s rdf:type ontology:television_program . ?p property:present_in_work ?s } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { resource:James_Harcourt property:present_in_work ?d . { { ?d rdf:type ontology:television_program } UNION { ?d rdf:type ontology:work_of_art } } } } . FILTER ( ?i = ?n ) }
[]
work of art television program common name
SYSTEM
40
Q24579400 Q24624067 Q3343834 Q24577230 Q494455 Q24622402 Q20656752 Q1353836 Q19975705 Q25885222 Q181538 Q24623408 Q24624893 Q1396131 Q3259530 Q24625686 Q24577318 Q24625326 Q26858752 Q24633210 Q1346246 Q550255 Q24625073 Q24623579 Q264699 Q24577238 Q24632700 Q24626363 Q24633126 Q3658171 Q4804479 Q24623790 Q200947 Q24083251 Q25923184 Q26858995 Q372783 Q16006746 Q24626010 Q26858919
(c(Q502895),P1441,c(Q838948)|c(Q15416))
action count
action approx
action union
action find_tuple_counts
relation P1441
type Q502895
type Q838948
action find_tuple_counts
relation P1441
type Q502895
type Q15416
action count
action filter_multi_types
action find
entity Q25885222
relation P1441
type Q838948
type Q15416
[ANSWER]
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q838948'}, {'concept': 'Q15416'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) ?p WHERE { { ?s rdf:type ontology:Q838948 . ?p rdf:type ontology:Q502895 . ?p property:P1441 ?s } UNION { ?p rdf:type ontology:Q502895 . ?s rdf:type ontology:Q15416 . ?p property:P1441 ?s } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { resource:Q25885222 property:P1441 ?d . { { ?d rdf:type ontology:Q15416 } UNION { ?d rdf:type ontology:Q838948 } } } } . FILTER ( ?i = ?n ) }
Jebidiah Farnsworth Bea Hansen Norman Winther Harriet Mutesi Orville Wright Frank Fauteux Bernard C. Webber Hrothgar Daniel Webster Cluff James Harcourt Rudolf Abel Eldon Hanan Raymond Sybert Wilbur Wright Loretta Jones Andy Fitzgerald Sara Katende Miriam Webber Sarah Katende George "Tiny" Myers Johnny Ringo J. William Fulbright Richard Livesey Wallace Quirey Wil Wheaton Robert Katende John Stello Mel Gouthro Donald Bangs Phiona Mutesi Ash Vasudevan D.A. Brown Ahmad ibn Fadlan Stan the Man Elizabeth Ham Aloysius Kyazze Adrian Cronauer James B. Donovan Ervin Maske Hope Katende
40
action count
action approx
action union
action find_tuple_counts
relation present in work
type common name
type work of art
action find_tuple_counts
relation present in work
type common name
type television program
action count
action filter_multi_types
action find
entity James Harcourt
relation present in work
type work of art
type television program
[{'concept': 'common name'}, 'present in work', [{'concept': 'work of art'}, {'concept': 'television program'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) ?p WHERE { { ?s rdf:type ontology:work_of_art . ?p rdf:type ontology:common_name . ?p property:present_in_work ?s } UNION { ?p rdf:type ontology:common_name . ?s rdf:type ontology:television_program . ?p property:present_in_work ?s } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { resource:James_Harcourt property:present_in_work ?d . { { ?d rdf:type ontology:television_program } UNION { ?d rdf:type ontology:work_of_art } } } } . FILTER ( ?i = ?n ) }
[]