Simple Question (Direct)
Simple Question
Q12044965
P102
Q7210356
USER
Which political organization is Petr Matějů a member of ?
(Q12044965,P102,c(Q7210356))
action filter_type
action find
entity Q12044965
relation P102
type Q7210356
['Q12044965', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?w WHERE { resource:Q12044965 property:P102 ?w . ?w rdf:type ontology:Q7210356 }
Petr Matějů
action filter_type
action find
entity Petr Matějů
relation member of political party
type political organization
['Petr Matějů', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?w WHERE { resource:Petr_Matějů property:member_of_political_party ?w . ?w rdf:type ontology:political_organization }
[]
political organization
Q2296356
SYSTEM
Freedom Union – Democratic Union
Q2296356
(Q12044965,P102,c(Q7210356))
action filter_type
action find
entity Q12044965
relation P102
type Q7210356
Party [ANSWER] is Petr Matějů a member of
['Q12044965', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?w WHERE { resource:Q12044965 property:P102 ?w . ?w rdf:type ontology:Q7210356 }
Freedom Union – Democratic Union
Party Freedom Union – Democratic Union is Petr Matějů a member of
Freedom Union – Democratic Union
action filter_type
action find
entity Petr Matějů
relation member of political party
type political organization
['Petr Matějů', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?w WHERE { resource:Petr_Matějů property:member_of_political_party ?w . ?w rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12044965
P27
Q15617994
USER
Which administrative territory is Petr Matějů a civilian of ?
(Q12044965,P27,c(Q15617994))
action filter_type
action find
entity Q12044965
relation P27
type Q15617994
['Q12044965', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q12044965 property:P27 ?o }
Petr Matějů
action filter_type
action find
entity Petr Matějů
relation country of citizenship
type designation for an administrative territorial entity
['Petr Matějů', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Petr_Matějů property:country_of_citizenship ?o }
[]
designation for an administrative territorial entity
Q213
SYSTEM
Czech Republic
Q213
(Q12044965,P27,c(Q15617994))
action filter_type
action find
entity Q12044965
relation P27
type Q15617994
[ANSWER] is Petr Matějů a civilian of
['Q12044965', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q12044965 property:P27 ?o }
Czech Republic
Czech Republic is Petr Matějů a civilian of
Czech Republic
action filter_type
action find
entity Petr Matějů
relation country of citizenship
type designation for an administrative territorial entity
['Petr Matějů', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Petr_Matějů property:country_of_citizenship ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12044965
P106
Q12737077
USER
What are the job of that person ?
(Q213,P106,c(Q12737077))
action filter_type
action find
entity Q12044965
relation P106
type Q12737077
['Q213', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q12044965 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
Petr Matějů
action filter_type
action find
entity Petr Matějů
relation occupation
type occupation
['Czech Republic', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Petr_Matějů property:occupation ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q82955 Q1231865 Q2306091
SYSTEM
politician, educationist, sociologist
Q82955 Q1231865 Q2306091
(Q213,P106,c(Q12737077))
action filter_type
action find
entity Q12044965
relation P106
type Q12737077
The job of that person are the [ANSWERS]
['Q213', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q12044965 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
politician educationist sociologist
The job of that person are the politician, educationist and sociologist
politician educationist sociologist
action filter_type
action find
entity Petr Matějů
relation occupation
type occupation
['Czech Republic', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Petr_Matějů property:occupation ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q213
P37
Q34770
USER
What is considered to be the official language of Czech Republic ?
(Q213,P37,c(Q34770))
action filter_type
action find
entity Q213
relation P37
type Q34770
['Q213', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q213 property:P37 ?m . ?m rdf:type ontology:Q34770 }
Czech Republic
action filter_type
action find
entity Czech Republic
relation official language
type language
['Czech Republic', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:Czech_Republic property:official_language ?m . ?m rdf:type ontology:language }
[]
language
Q9056
SYSTEM
Czech
Q9056
(Q213,P37,c(Q34770))
action filter_type
action find
entity Q213
relation P37
type Q34770
Republic [ANSWER] is considered to be the official language of [ANSWER] Republic
['Q213', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q213 property:P37 ?m . ?m rdf:type ontology:Q34770 }
Czech
Republic Czech is considered to be the official language of Czech Republic
Czech
action filter_type
action find
entity Czech Republic
relation official language
type language
['Czech Republic', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:Czech_Republic property:official_language ?m . ?m rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11362472
Q34770
USER
And also tell me about World Baseball Softball Confederation?
(Q11362472,P37,c(Q34770))
action filter_type
action find
entity Q11362472
relation P37
type Q34770
['Q11362472', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { resource:Q11362472 property:P37 ?h . ?h rdf:type ontology:Q34770 }
World Baseball Softball Confederation
action filter_type
action find
entity World Baseball Softball Confederation
relation official language
type language
['World\xa0Baseball Softball\xa0Confederation', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { resource:World Baseball_Softball Confederation property:official_language ?h . ?h rdf:type ontology:language }
[]
language
Q1860 Q1321
SYSTEM
English, Spanish
Q1860 Q1321
(Q11362472,P37,c(Q34770))
action filter_type
action find
entity Q11362472
relation P37
type Q34770
[ANSWERS]
['Q11362472', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { resource:Q11362472 property:P37 ?h . ?h rdf:type ontology:Q34770 }
English Spanish
English Spanish
action filter_type
action find
entity World Baseball Softball Confederation
relation official language
type language
['World\xa0Baseball Softball\xa0Confederation', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { resource:World Baseball_Softball Confederation property:official_language ?h . ?h rdf:type ontology:language }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1860
P264
Q2031291
USER
Which release has that language as its record label ?
(c(Q2031291),P264,Q1860)
action filter_type
action find_reverse
entity Q1860
relation P264
type Q2031291
[{'concept': 'Q2031291'}, 'P264', 'Q1860']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q2031291 . ?n property:P264 resource:Q1860 }
English
action filter_type
action find_reverse
entity English
relation record label
type release
[{'concept': 'release'}, 'record label', 'English']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:release . ?n property:record_label resource:English }
[]
release
Clarification for simple ques.
Q1321
SYSTEM
Did you mean Spanish ?
Q1860 Q1321
(c(Q2031291),P264,Q1860) (c(Q2031291),P264,Q1321)
[ANSWER]
[{'concept': 'Q2031291'}, 'P264', 'Q1860'] [{'concept': 'Q2031291'}, 'P264', 'Q1321']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q2031291 . ?n property:P264 resource:Q1860 }
English Spanish
Did you mean Spanish ?
Spanish
[{'concept': 'release'}, 'record label', 'English'] [{'concept': 'release'}, 'record label', 'Spanish']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:release . ?n property:record_label resource:English }
[]
Simple Question (Coreferenced)
USER
No, I meant English. Could you tell me the answer for that?
(c(Q2031291),P264,Q1860)
Q1860
[{'concept': 'Q2031291'}, 'P264', 'Q1860']
[{'concept': 'release'}, 'record label', 'English']
[]
Q7281317
SYSTEM
Radiosurgery
Q7281317
(c(Q2031291),P264,Q1860)
action filter_type
action find_reverse
entity Q1860
relation P264
type Q2031291
[ANSWER] has that language as its record label
[{'concept': 'Q2031291'}, 'P264', 'Q1860']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q2031291 . ?n property:P264 resource:Q1860 }
Radiosurgery
Radiosurgery has that language as its record label
Radiosurgery
action filter_type
action find_reverse
entity English
relation record label
type release
[{'concept': 'release'}, 'record label', 'English']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:release . ?n property:record_label resource:English }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1860
P361
Q5962346
USER
Which classification schemes are English a portion of ?
(Q1860,P361,c(Q5962346))
action filter_type
action find
entity Q1860
relation P361
type Q5962346
['Q1860', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?z WHERE { resource:Q1860 property:P361 ?z . ?z rdf:type ontology:Q5962346 }
English
action filter_type
action find
entity English
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?z WHERE { resource:English property:part_of ?z . ?z rdf:type ontology:classification_scheme }
[]
classification scheme
Q1346342 Q5329170
SYSTEM
Anglic languages, Anglo-Frisian languages
Q1346342 Q5329170
(Q1860,P361,c(Q5962346))
action filter_type
action find
entity Q1860
relation P361
type Q5962346
Are [ANSWERS] are English a portion of
['Q1860', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?z WHERE { resource:Q1860 property:P361 ?z . ?z rdf:type ontology:Q5962346 }
Anglic languages Anglo-Frisian languages
Are Anglic languages and Anglo-Frisian languages are English a portion of
Anglic languages Anglo-Frisian languages
action filter_type
action find
entity English
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?z WHERE { resource:English property:part_of ?z . ?z rdf:type ontology:classification_scheme }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q29409
Q5962346
USER
And also tell me about Mut?
(Q29409,P361,c(Q5962346))
action filter_type
action find
entity Q29409
relation P361
type Q5962346
['Q29409', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?m WHERE { resource:Q29409 property:P361 ?m . ?m rdf:type ontology:Q5962346 }
Mut
action filter_type
action find
entity Mut
relation part of
type classification scheme
['Mut', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?m WHERE { resource:Mut property:part_of ?m . ?m rdf:type ontology:classification_scheme }
[]
classification scheme
Q205740
SYSTEM
Egyptian mythology
Q205740
(Q29409,P361,c(Q5962346))
action filter_type
action find
entity Q29409
relation P361
type Q5962346
[ANSWER]
['Q29409', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?m WHERE { resource:Q29409 property:P361 ?m . ?m rdf:type ontology:Q5962346 }
Egyptian mythology
Egyptian mythology
action filter_type
action find
entity Mut
relation part of
type classification scheme
['Mut', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?m WHERE { resource:Mut property:part_of ?m . ?m rdf:type ontology:classification_scheme }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q6546170
P136
Q5962346 Q2088357 Q502895
USER
How many classification schemes are the genre for around the same number of musical ensembles or people as light entertainment ?
(c(Q2088357)|c(Q502895),P136,c(Q5962346))
action count
action approx
action union
action find_reverse_tuple_counts
relation P136
type Q5962346
type Q2088357
action find_reverse_tuple_counts
relation P136
type Q5962346
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q6546170
relation P136
type Q2088357
type Q502895
[[{'concept': 'Q2088357'}, {'concept': 'Q502895'}], 'P136', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?g ) WHERE { VALUES ( ?o ) { ( ontology:Q2088357 ) ( ontology:Q502895 ) } . ?f rdf:type ?o } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { ?b property:P136 resource:Q6546170 . { { ?b rdf:type ontology:Q502895 } UNION { ?b rdf:type ontology:Q2088357 } } } } . FILTER ( ?g = ?t ) }
light entertainment
action count
action approx
action union
action find_reverse_tuple_counts
relation genre
type classification scheme
type musical ensemble
action find_reverse_tuple_counts
relation genre
type classification scheme
type common name
action count
action filter_multi_types
action find_reverse
entity light entertainment
relation genre
type musical ensemble
type common name
[[{'concept': 'musical ensemble'}, {'concept': 'common name'}], 'genre', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?g ) WHERE { VALUES ( ?o ) { ( ontology:musical_ensemble ) ( ontology:common_name ) } . ?f rdf:type ?o } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { ?b property:genre resource:light_entertainment . { { ?b rdf:type ontology:common_name } UNION { ?b rdf:type ontology:musical_ensemble } } } } . FILTER ( ?g = ?t ) }
[]
classification scheme musical ensemble common name
SYSTEM
59
Q968679 Q5227671 Q18336 Q21188110 Q1153495 Q4949058 Q581714 Q1273568 Q338632 Q336181 Q216545 Q7724161 Q16894224 Q3546572 Q47307 Q5434357 Q3421644 Q1366112 Q861402 Q29197 Q23745 Q188504 Q380313 Q20267837 Q7696995 Q4382232 Q1407245 Q4922471 Q17113138 Q5465514 Q23739 Q204698 Q2290276 Q161272 Q20220309 Q6546170 Q4765080 Q349479 Q336059 Q179805 Q47555 Q288608 Q2091526 Q1457145 Q12322867 Q1962634 Q399811 Q775344 Q6022825 Q482612 Q21232614 Q3951815 Q20652466 Q1413406 Q178840 Q1924856 Q986699 Q5428822 Q7988576
(c(Q2088357)|c(Q502895),P136,c(Q5962346))
action count
action approx
action union
action find_reverse_tuple_counts
relation P136
type Q5962346
type Q2088357
action find_reverse_tuple_counts
relation P136
type Q5962346
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q6546170
relation P136
type Q2088357
type Q502895
[ANSWER]
[[{'concept': 'Q2088357'}, {'concept': 'Q502895'}], 'P136', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?g ) WHERE { VALUES ( ?o ) { ( ontology:Q2088357 ) ( ontology:Q502895 ) } . ?f rdf:type ?o } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { ?b property:P136 resource:Q6546170 . { { ?b rdf:type ontology:Q502895 } UNION { ?b rdf:type ontology:Q2088357 } } } } . FILTER ( ?g = ?t ) }
Terza rima dating game show heraldry American television sitcom configuration management bottle episode animated series children's television series documentary soap opera variety show Christian theology teleserial sports program tabloid talk show genealogy fantasy television reality show television drama educational television season premiere telenovela alternative medicine archival science historical television series television comedy procedural drama television show black sitcom teen sitcom food reality television soap opera limerick season finale social psychology horror television series light entertainment animated sitcom building industry science fiction political philosophy political economy Scripted Reality medical drama cooking show crime television news television series Japanese television drama teen drama Indian soap opera Korean drama reality television series sceneggiato black comedy television program technical documentation television series about families metal construction late-night talk show factual television television western
59
action count
action approx
action union
action find_reverse_tuple_counts
relation genre
type classification scheme
type musical ensemble
action find_reverse_tuple_counts
relation genre
type classification scheme
type common name
action count
action filter_multi_types
action find_reverse
entity light entertainment
relation genre
type musical ensemble
type common name
[[{'concept': 'musical ensemble'}, {'concept': 'common name'}], 'genre', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?g ) WHERE { VALUES ( ?o ) { ( ontology:musical_ensemble ) ( ontology:common_name ) } . ?f rdf:type ?o } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { ?b property:genre resource:light_entertainment . { { ?b rdf:type ontology:common_name } UNION { ?b rdf:type ontology:musical_ensemble } } } } . FILTER ( ?g = ?t ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1366112
P136
Q5962346 Q2088357 Q502895
USER
And also tell me about television drama?
(c(Q2088357)|c(Q502895),P136,c(Q5962346))
action count
action approx
action union
action find_reverse_tuple_counts
relation P136
type Q5962346
type Q2088357
action find_reverse_tuple_counts
relation P136
type Q5962346
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q1366112
relation P136
type Q2088357
type Q502895
[[{'concept': 'Q2088357'}, {'concept': 'Q502895'}], 'P136', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:P136 resource:Q1366112 . { { ?s rdf:type ontology:Q2088357 } UNION { ?s rdf:type ontology:Q502895 } } } } . FILTER ( ?p = ?m ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) ?t WHERE { ?z rdf:type ?e . VALUES ( ?e ) { ( ontology:Q502895 ) ( ontology:Q2088357 ) } } GROUP BY ?t } }
television drama
action count
action approx
action union
action find_reverse_tuple_counts
relation genre
type classification scheme
type musical ensemble
action find_reverse_tuple_counts
relation genre
type classification scheme
type common name
action count
action filter_multi_types
action find_reverse
entity television drama
relation genre
type musical ensemble
type common name
[[{'concept': 'musical ensemble'}, {'concept': 'common name'}], 'genre', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:genre resource:television_drama . { { ?s rdf:type ontology:musical_ensemble } UNION { ?s rdf:type ontology:common_name } } } } . FILTER ( ?p = ?m ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) ?t WHERE { ?z rdf:type ?e . VALUES ( ?e ) { ( ontology:common_name ) ( ontology:musical_ensemble ) } } GROUP BY ?t } }
[]
classification scheme musical ensemble common name
SYSTEM
59
Q968679 Q5227671 Q18336 Q21188110 Q1153495 Q4949058 Q581714 Q1273568 Q338632 Q336181 Q216545 Q7724161 Q16894224 Q3546572 Q47307 Q5434357 Q3421644 Q1366112 Q861402 Q29197 Q23745 Q188504 Q380313 Q20267837 Q7696995 Q4382232 Q1407245 Q4922471 Q17113138 Q5465514 Q23739 Q204698 Q2290276 Q161272 Q20220309 Q6546170 Q4765080 Q349479 Q336059 Q179805 Q47555 Q288608 Q2091526 Q1457145 Q12322867 Q1962634 Q399811 Q775344 Q6022825 Q482612 Q21232614 Q3951815 Q20652466 Q1413406 Q178840 Q1924856 Q986699 Q5428822 Q7988576
(c(Q2088357)|c(Q502895),P136,c(Q5962346))
action count
action approx
action union
action find_reverse_tuple_counts
relation P136
type Q5962346
type Q2088357
action find_reverse_tuple_counts
relation P136
type Q5962346
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q1366112
relation P136
type Q2088357
type Q502895
[ANSWER]
[[{'concept': 'Q2088357'}, {'concept': 'Q502895'}], 'P136', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:P136 resource:Q1366112 . { { ?s rdf:type ontology:Q2088357 } UNION { ?s rdf:type ontology:Q502895 } } } } . FILTER ( ?p = ?m ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) ?t WHERE { ?z rdf:type ?e . VALUES ( ?e ) { ( ontology:Q502895 ) ( ontology:Q2088357 ) } } GROUP BY ?t } }
Terza rima dating game show heraldry American television sitcom configuration management bottle episode animated series children's television series documentary soap opera variety show Christian theology teleserial sports program tabloid talk show genealogy fantasy television reality show television drama educational television season premiere telenovela alternative medicine archival science historical television series television comedy procedural drama television show black sitcom teen sitcom food reality television soap opera limerick season finale social psychology horror television series light entertainment animated sitcom building industry science fiction political philosophy political economy Scripted Reality medical drama cooking show crime television news television series Japanese television drama teen drama Indian soap opera Korean drama reality television series sceneggiato black comedy television program technical documentation television series about families metal construction late-night talk show factual television television western
59
action count
action approx
action union
action find_reverse_tuple_counts
relation genre
type classification scheme
type musical ensemble
action find_reverse_tuple_counts
relation genre
type classification scheme
type common name
action count
action filter_multi_types
action find_reverse
entity television drama
relation genre
type musical ensemble
type common name
[[{'concept': 'musical ensemble'}, {'concept': 'common name'}], 'genre', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:genre resource:television_drama . { { ?s rdf:type ontology:musical_ensemble } UNION { ?s rdf:type ontology:common_name } } } } . FILTER ( ?p = ?m ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) ?t WHERE { ?z rdf:type ?e . VALUES ( ?e ) { ( ontology:common_name ) ( ontology:musical_ensemble ) } } GROUP BY ?t } }
[]