Simple Question (Direct)
Simple Question
Q6289409
P69
Q3918
USER
Which university was Josh Strauss educated at ?
(Q6289409,P69,c(Q3918))
action filter_type
action find
entity Q6289409
relation P69
type Q3918
['Q6289409', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?y WHERE { resource:Q6289409 property:P69 ?y . ?y rdf:type ontology:Q3918 }
Josh Strauss
action filter_type
action find
entity Josh Strauss
relation educated at
type university
['Josh Strauss', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?y WHERE { resource:Josh_Strauss property:educated_at ?y . ?y rdf:type ontology:university }
[]
university
Q1066492
SYSTEM
Stellenbosch University
Q1066492
(Q6289409,P69,c(Q3918))
action filter_type
action find
entity Q6289409
relation P69
type Q3918
Josh Strauss was educated at [ANSWER]
['Q6289409', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?y WHERE { resource:Q6289409 property:P69 ?y . ?y rdf:type ontology:Q3918 }
Stellenbosch University
Josh Strauss was educated at Stellenbosch University
Stellenbosch University
action filter_type
action find
entity Josh Strauss
relation educated at
type university
['Josh Strauss', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?y WHERE { resource:Josh_Strauss property:educated_at ?y . ?y rdf:type ontology:university }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1066492
P127
Q1076486
USER
Which sports venue is under posessision of that university ?
(c(Q1076486),P127,Q1066492)
action filter_type
action find_reverse
entity Q1066492
relation P127
type Q1076486
[{'concept': 'Q1076486'}, 'P127', 'Q1066492']
SELECT DISTINCT ?x WHERE { ?x property:P127 resource:Q1066492 . ?x rdf:type ontology:Q1076486 }
Stellenbosch University
action filter_type
action find_reverse
entity Stellenbosch University
relation owned by
type sports venue
[{'concept': 'sports venue'}, 'owned by', 'Stellenbosch University']
SELECT DISTINCT ?x WHERE { ?x property:owned_by resource:Stellenbosch_University . ?x rdf:type ontology:sports_venue }
[]
sports venue
Q5140841
SYSTEM
Coetzenburg Stadium
Q5140841
(c(Q1076486),P127,Q1066492)
action filter_type
action find_reverse
entity Q1066492
relation P127
type Q1076486
[ANSWER] is under posessision of that university
[{'concept': 'Q1076486'}, 'P127', 'Q1066492']
SELECT DISTINCT ?x WHERE { ?x property:P127 resource:Q1066492 . ?x rdf:type ontology:Q1076486 }
Coetzenburg Stadium
Coetzenburg Stadium is under posessision of that university
Coetzenburg Stadium
action filter_type
action find_reverse
entity Stellenbosch University
relation owned by
type sports venue
[{'concept': 'sports venue'}, 'owned by', 'Stellenbosch University']
SELECT DISTINCT ?x WHERE { ?x property:owned_by resource:Stellenbosch_University . ?x rdf:type ontology:sports_venue }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1066492
P466
Q1076486
USER
What is occupied by that university ?
(c(Q1076486),P466,Q5140841)
action filter_type
action find_reverse
entity Q1066492
relation P466
type Q1076486
[{'concept': 'Q1076486'}, 'P466', 'Q5140841']
SELECT DISTINCT ?n WHERE { ?n property:P466 resource:Q1066492 . ?n rdf:type ontology:Q1076486 }
Stellenbosch University
action filter_type
action find_reverse
entity Stellenbosch University
relation occupant
type sports venue
[{'concept': 'sports venue'}, 'occupant', 'Coetzenburg Stadium']
SELECT DISTINCT ?n WHERE { ?n property:occupant resource:Stellenbosch_University . ?n rdf:type ontology:sports_venue }
[]
sports venue
Q2422623
SYSTEM
Danie Craven Stadium
Q2422623
(c(Q1076486),P466,Q5140841)
action filter_type
action find_reverse
entity Q1066492
relation P466
type Q1076486
[ANSWER] is occupied by that university
[{'concept': 'Q1076486'}, 'P466', 'Q5140841']
SELECT DISTINCT ?n WHERE { ?n property:P466 resource:Q1066492 . ?n rdf:type ontology:Q1076486 }
Danie Craven Stadium
Danie Craven Stadium is occupied by that university
Danie Craven Stadium
action filter_type
action find_reverse
entity Stellenbosch University
relation occupant
type sports venue
[{'concept': 'sports venue'}, 'occupant', 'Coetzenburg Stadium']
SELECT DISTINCT ?n WHERE { ?n property:occupant resource:Stellenbosch_University . ?n rdf:type ontology:sports_venue }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1066492
P123
Q21114848
USER
Which magazine genres were issued by Stellenbosch University ?
(c(Q21114848),P123,Q1066492)
action filter_type
action find_reverse
entity Q1066492
relation P123
type Q21114848
[{'concept': 'Q21114848'}, 'P123', 'Q1066492']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q21114848 . ?h property:P123 resource:Q1066492 }
Stellenbosch University
action filter_type
action find_reverse
entity Stellenbosch University
relation publisher
type magazine genre
[{'concept': 'magazine genre'}, 'publisher', 'Stellenbosch University']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:magazine_genre . ?h property:publisher resource:Stellenbosch_University }
[]
magazine genre
Q4689767 Q7166748
SYSTEM
African Finance Journal, Per Linguam
Q4689767 Q7166748
(c(Q21114848),P123,Q1066492)
action filter_type
action find_reverse
entity Q1066492
relation P123
type Q21114848
[ANSWERS] were issued by Stellenbosch University
[{'concept': 'Q21114848'}, 'P123', 'Q1066492']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q21114848 . ?h property:P123 resource:Q1066492 }
African Finance Journal Per Linguam
African Finance Journal and Per Linguam were issued by Stellenbosch University
African Finance Journal Per Linguam
action filter_type
action find_reverse
entity Stellenbosch University
relation publisher
type magazine genre
[{'concept': 'magazine genre'}, 'publisher', 'Stellenbosch University']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:magazine_genre . ?h property:publisher resource:Stellenbosch_University }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q4689767 Q7166748
P364
Q34770
USER
Which languages are the original languages of creation of those magazine genres ?
(Q4689767,P364,c(Q34770)) (Q7166748,P364,c(Q34770))
action filter_type
action find
entity prev_answer
relation P364
type Q34770
['Q4689767', 'P364', {'concept': 'Q34770'}] ['Q7166748', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { ?o property:P364 ?l . VALUES ( ?o ) { ( resource:Q4689767 ) ( resource:Q7166748 ) } . ?l rdf:type ontology:Q34770 }
African Finance Journal Per Linguam
action filter_type
action find
entity prev_answer
relation original language of work
type language
['African Finance Journal', 'original language of work', {'concept': 'language'}] ['Per Linguam', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { ?o property:original_language_of_work ?l . VALUES ( ?o ) { ( resource:African_Finance_Journal ) ( resource:Per_Linguam ) } . ?l rdf:type ontology:language }
[]
language
Q1860 Q1860
SYSTEM
English
Q1860 Q1860
(Q4689767,P364,c(Q34770)) (Q7166748,P364,c(Q34770))
action filter_type
action find
entity prev_answer
relation P364
type Q34770
[ANSWER] and [ANSWER] are the original languages of creation of those magazine genres
['Q4689767', 'P364', {'concept': 'Q34770'}] ['Q7166748', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { ?o property:P364 ?l . VALUES ( ?o ) { ( resource:Q4689767 ) ( resource:Q7166748 ) } . ?l rdf:type ontology:Q34770 }
English English
English and English are the original languages of creation of those magazine genres
English English
action filter_type
action find
entity prev_answer
relation original language of work
type language
['African Finance Journal', 'original language of work', {'concept': 'language'}] ['Per Linguam', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { ?o property:original_language_of_work ?l . VALUES ( ?o ) { ( resource:African_Finance_Journal ) ( resource:Per_Linguam ) } . ?l rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1066492
P108
Q502895
USER
Which people work for Stellenbosch University ?
(c(Q502895),P108,Q1066492)
action filter_type
action find_reverse
entity Q1066492
relation P108
type Q502895
[{'concept': 'Q502895'}, 'P108', 'Q1066492']
SELECT DISTINCT ?z WHERE { ?z property:P108 resource:Q1066492 . ?z rdf:type ontology:Q502895 }
Stellenbosch University
action filter_type
action find_reverse
entity Stellenbosch University
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Stellenbosch University']
SELECT DISTINCT ?z WHERE { ?z property:employer resource:Stellenbosch_University . ?z rdf:type ontology:common_name }
[]
common name
Q982266 Q2364908 Q1391013
SYSTEM
D. J. Opperman, Karlien de Villiers, Frederik van Zyl Slabbert
Q982266 Q2364908 Q1391013
(c(Q502895),P108,Q1066492)
action filter_type
action find_reverse
entity Q1066492
relation P108
type Q502895
[ANSWERS] work for Stellenbosch University
[{'concept': 'Q502895'}, 'P108', 'Q1066492']
SELECT DISTINCT ?z WHERE { ?z property:P108 resource:Q1066492 . ?z rdf:type ontology:Q502895 }
D. J. Opperman Karlien de Villiers Frederik van Zyl Slabbert
D. J. Opperman, Karlien de Villiers and Frederik van Zyl Slabbert work for Stellenbosch University
D. J. Opperman Karlien de Villiers Frederik van Zyl Slabbert
action filter_type
action find_reverse
entity Stellenbosch University
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Stellenbosch University']
SELECT DISTINCT ?z WHERE { ?z property:employer resource:Stellenbosch_University . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1066492
P137
Q1076486
USER
Which sports venue was operated by Stellenbosch University ?
(c(Q1076486),P137,Q1066492)
action filter_type
action find_reverse
entity Q1066492
relation P137
type Q1076486
[{'concept': 'Q1076486'}, 'P137', 'Q1066492']
SELECT DISTINCT ?p WHERE { ?p property:P137 resource:Q1066492 . ?p rdf:type ontology:Q1076486 }
Stellenbosch University
action filter_type
action find_reverse
entity Stellenbosch University
relation operator
type sports venue
[{'concept': 'sports venue'}, 'operator', 'Stellenbosch University']
SELECT DISTINCT ?p WHERE { ?p property:operator resource:Stellenbosch_University . ?p rdf:type ontology:sports_venue }
[]
sports venue
Q5140841
SYSTEM
Coetzenburg Stadium
Q5140841
(c(Q1076486),P137,Q1066492)
action filter_type
action find_reverse
entity Q1066492
relation P137
type Q1076486
[ANSWER] was operated by Stellenbosch University
[{'concept': 'Q1076486'}, 'P137', 'Q1066492']
SELECT DISTINCT ?p WHERE { ?p property:P137 resource:Q1066492 . ?p rdf:type ontology:Q1076486 }
Coetzenburg Stadium
Coetzenburg Stadium was operated by Stellenbosch University
Coetzenburg Stadium
action filter_type
action find_reverse
entity Stellenbosch University
relation operator
type sports venue
[{'concept': 'sports venue'}, 'operator', 'Stellenbosch University']
SELECT DISTINCT ?p WHERE { ?p property:operator resource:Stellenbosch_University . ?p rdf:type ontology:sports_venue }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q982266
P50
Q15850590
USER
Which theatrical genres are D. J. Opperman an author of ?
(c(Q15850590),P50,Q982266)
action filter_type
action find_reverse
entity Q982266
relation P50
type Q15850590
[{'concept': 'Q15850590'}, 'P50', 'Q982266']
SELECT DISTINCT ?h WHERE { ?h property:P50 resource:Q982266 . ?h rdf:type ontology:Q15850590 }
D. J. Opperman
action filter_type
action find_reverse
entity D. J. Opperman
relation author
type theatrical genre
[{'concept': 'theatrical genre'}, 'author', 'D. J. Opperman']
SELECT DISTINCT ?h WHERE { ?h property:author resource:D._J._Opperman . ?h rdf:type ontology:theatrical_genre }
[]
theatrical genre
Q24061076 Q23707702
SYSTEM
Vergelegen, Voëlvry
Q24061076 Q23707702
(c(Q15850590),P50,Q982266)
action filter_type
action find_reverse
entity Q982266
relation P50
type Q15850590
[ANSWERS] are D. J. Opperman an author of
[{'concept': 'Q15850590'}, 'P50', 'Q982266']
SELECT DISTINCT ?h WHERE { ?h property:P50 resource:Q982266 . ?h rdf:type ontology:Q15850590 }
Vergelegen Voëlvry
Vergelegen and Voëlvry are D. J. Opperman an author of
Vergelegen Voëlvry
action filter_type
action find_reverse
entity D. J. Opperman
relation author
type theatrical genre
[{'concept': 'theatrical genre'}, 'author', 'D. J. Opperman']
SELECT DISTINCT ?h WHERE { ?h property:author resource:D._J._Opperman . ?h rdf:type ontology:theatrical_genre }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q982266
P20
Q56061
USER
Where did that person die ?
(Q24061076,P20,c(Q56061)) (Q23707702,P20,c(Q56061))
action filter_type
action find
entity Q982266
relation P20
type Q56061
['Q24061076', 'P20', {'concept': 'Q56061'}] ['Q23707702', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q982266 property:P20 ?f . ?f rdf:type ontology:Q56061 }
D. J. Opperman
action filter_type
action find
entity D. J. Opperman
relation place of death
type administrative territorial entity
['Vergelegen', 'place of death', {'concept': 'administrative territorial entity'}] ['Voëlvry', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:D._J._Opperman property:place_of_death ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q5460
SYSTEM
Stellenbosch
Q5460
(Q24061076,P20,c(Q56061)) (Q23707702,P20,c(Q56061))
action filter_type
action find
entity Q982266
relation P20
type Q56061
That person died at [ANSWER]
['Q24061076', 'P20', {'concept': 'Q56061'}] ['Q23707702', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q982266 property:P20 ?f . ?f rdf:type ontology:Q56061 }
Stellenbosch
That person died at Stellenbosch
Stellenbosch
action filter_type
action find
entity D. J. Opperman
relation place of death
type administrative territorial entity
['Vergelegen', 'place of death', {'concept': 'administrative territorial entity'}] ['Voëlvry', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:D._J._Opperman property:place_of_death ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q982266
P166
Q618779
USER
What was awarded to that person ?
(Q5460,P166,c(Q618779))
action filter_type
action find
entity Q982266
relation P166
type Q618779
['Q5460', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?g WHERE { resource:Q982266 property:P166 ?g . ?g rdf:type ontology:Q618779 }
D. J. Opperman
action filter_type
action find
entity D. J. Opperman
relation award received
type award
['Stellenbosch', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?g WHERE { resource:D._J._Opperman property:award_received ?g . ?g rdf:type ontology:award }
[]
award
Q648965
SYSTEM
Central News Agency Literary Award
Q648965
(Q5460,P166,c(Q618779))
action filter_type
action find
entity Q982266
relation P166
type Q618779
[ANSWER] was awarded to that person
['Q5460', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?g WHERE { resource:Q982266 property:P166 ?g . ?g rdf:type ontology:Q618779 }
Central News Agency Literary Award
Central News Agency Literary Award was awarded to that person
Central News Agency Literary Award
action filter_type
action find
entity D. J. Opperman
relation award received
type award
['Stellenbosch', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?g WHERE { resource:D._J._Opperman property:award_received ?g . ?g rdf:type ontology:award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q982266
P800
Q15850590
USER
What was notable work done by D. J. Opperman ?
(Q982266,P800,c(Q15850590))
action filter_type
action find
entity Q982266
relation P800
type Q15850590
['Q982266', 'P800', {'concept': 'Q15850590'}]
SELECT DISTINCT ?x WHERE { resource:Q982266 property:P800 ?x . ?x rdf:type ontology:Q15850590 }
D. J. Opperman
action filter_type
action find
entity D. J. Opperman
relation notable work
type theatrical genre
['D. J. Opperman', 'notable work', {'concept': 'theatrical genre'}]
SELECT DISTINCT ?x WHERE { resource:D._J._Opperman property:notable_work ?x . ?x rdf:type ontology:theatrical_genre }
[]
theatrical genre
Q23707702
SYSTEM
Voëlvry
Q23707702
(Q982266,P800,c(Q15850590))
action filter_type
action find
entity Q982266
relation P800
type Q15850590
Notable work done by D. J. Opperman was named [ANSWER]
['Q982266', 'P800', {'concept': 'Q15850590'}]
SELECT DISTINCT ?x WHERE { resource:Q982266 property:P800 ?x . ?x rdf:type ontology:Q15850590 }
Voëlvry
Notable work done by D. J. Opperman was named Voëlvry
Voëlvry
action filter_type
action find
entity D. J. Opperman
relation notable work
type theatrical genre
['D. J. Opperman', 'notable work', {'concept': 'theatrical genre'}]
SELECT DISTINCT ?x WHERE { resource:D._J._Opperman property:notable_work ?x . ?x rdf:type ontology:theatrical_genre }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q982266
P21
Q290
USER
Which sex does that person have ?
(Q23707702,P21,c(Q290))
action filter_type
action find
entity Q982266
relation P21
type Q290
['Q23707702', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q982266 property:P21 ?h . ?h rdf:type ontology:Q290 }
D. J. Opperman
action filter_type
action find
entity D. J. Opperman
relation gender
type sex
['Voëlvry', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:D._J._Opperman property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q23707702,P21,c(Q290))
action filter_type
action find
entity Q982266
relation P21
type Q290
That person has a [ANSWER]
['Q23707702', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q982266 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity D. J. Opperman
relation gender
type sex
['Voëlvry', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:D._J._Opperman property:gender ?h . ?h rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P21
Q188451 Q134556
USER
How many music genres and singles have the gender as that sex ?
(c(Q188451),P21,Q6581097) (c(Q134556),P21,Q6581097) (c(Q188451),P21,Q6581097) (c(Q134556),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q188451
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q134556
[{'concept': 'Q188451'}, 'P21', 'Q6581097'] [{'concept': 'Q134556'}, 'P21', 'Q6581097'] [{'concept': 'Q188451'}, 'P21', 'Q6581097'] [{'concept': 'Q134556'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { ?g rdf:type ?q . VALUES ( ?q ) { ( ontology:Q188451 ) ( ontology:Q134556 ) } }
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type music genre
action filter_type
action find_reverse
entity male
relation gender
type single
[{'concept': 'music genre'}, 'gender', 'male'] [{'concept': 'single'}, 'gender', 'male'] [{'concept': 'music genre'}, 'gender', 'male'] [{'concept': 'single'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { ?g rdf:type ?q . VALUES ( ?q ) { ( ontology:music_genre ) ( ontology:single ) } }
[]
music genre single
SYSTEM
6 music genres and 1 singles
Q6141782 Q6024930 Q2846565 Q4933787 Q5377442 Q6267657 Q1976986
(c(Q188451),P21,Q6581097) (c(Q134556),P21,Q6581097) (c(Q188451),P21,Q6581097) (c(Q134556),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q188451
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q134556
[ANSWER]
[{'concept': 'Q188451'}, 'P21', 'Q6581097'] [{'concept': 'Q134556'}, 'P21', 'Q6581097'] [{'concept': 'Q188451'}, 'P21', 'Q6581097'] [{'concept': 'Q134556'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { ?g rdf:type ?q . VALUES ( ?q ) { ( ontology:Q188451 ) ( ontology:Q134556 ) } }
James Radclyffe, 3rd Earl of Derwentwater Indio Solari Andrew Barton Bob Ridley Engarandus Juvenis Johnny Sands Thomas the Rhymer
6 music genres and 1 singles
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type music genre
action filter_type
action find_reverse
entity male
relation gender
type single
[{'concept': 'music genre'}, 'gender', 'male'] [{'concept': 'single'}, 'gender', 'male'] [{'concept': 'music genre'}, 'gender', 'male'] [{'concept': 'single'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { ?g rdf:type ?q . VALUES ( ?q ) { ( ontology:music_genre ) ( ontology:single ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P144
Q1318295 Q15850590 Q15850590
USER
Which theatrical genres are adapted from max number of narratives and theatrical genres ?
(c(Q15850590),P144,c(Q1318295)|c(Q15850590))
action argmax
action union
action find_tuple_counts
relation P144
type Q15850590
type Q1318295
action find_tuple_counts
relation P144
type Q15850590
type Q15850590
[{'concept': 'Q15850590'}, 'P144', [{'concept': 'Q1318295'}, {'concept': 'Q15850590'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?n ) { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?c ) WHERE { { ?g property:P144 ?q . ?g rdf:type ontology:Q15850590 . ?q rdf:type ontology:Q1318295 } UNION { ?g property:P144 ?q . ?g rdf:type ontology:Q15850590 . ?q rdf:type ontology:Q15850590 } } GROUP BY ?g } } . { SELECT DISTINCT ?k ( COUNT ( ?j ) AS ?a ) WHERE { { ?k property:P144 ?j . ?k rdf:type ontology:Q15850590 . ?j rdf:type ontology:Q1318295 } UNION { ?k property:P144 ?j . ?k rdf:type ontology:Q15850590 . ?j rdf:type ontology:Q15850590 } } GROUP BY ?k } . FILTER ( ?a = ?n ) }
action argmax
action union
action find_tuple_counts
relation based on
type theatrical genre
type narrative
action find_tuple_counts
relation based on
type theatrical genre
type theatrical genre
[{'concept': 'theatrical genre'}, 'based on', [{'concept': 'narrative'}, {'concept': 'theatrical genre'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?n ) { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?c ) WHERE { { ?g property:based_on ?q . ?g rdf:type ontology:theatrical_genre . ?q rdf:type ontology:narrative } UNION { ?g property:based_on ?q . ?g rdf:type ontology:theatrical_genre . ?q rdf:type ontology:theatrical_genre } } GROUP BY ?g } } . { SELECT DISTINCT ?k ( COUNT ( ?j ) AS ?a ) WHERE { { ?k property:based_on ?j . ?k rdf:type ontology:theatrical_genre . ?j rdf:type ontology:narrative } UNION { ?k property:based_on ?j . ?k rdf:type ontology:theatrical_genre . ?j rdf:type ontology:theatrical_genre } } GROUP BY ?k } . FILTER ( ?a = ?n ) }
[]
narrative theatrical genre theatrical genre
Q320353 Q653753 Q207410
SYSTEM
Norma, Miss Saigon, Così fan tutte
Q653753 Q403810 Q332536 Q794233 Q1419652 Q320353 Q4227544 Q207410 Q2629201 Q3990062 Q1457481 Q23092132 Q2172070 Q7775384 Q5157861
(c(Q15850590),P144,c(Q1318295)|c(Q15850590))
action argmax
action union
action find_tuple_counts
relation P144
type Q15850590
type Q1318295
action find_tuple_counts
relation P144
type Q15850590
type Q15850590
[ANSWERS] are adapted from max number of narratives and theatrical genres
[{'concept': 'Q15850590'}, 'P144', [{'concept': 'Q1318295'}, {'concept': 'Q15850590'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?n ) { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?c ) WHERE { { ?g property:P144 ?q . ?g rdf:type ontology:Q15850590 . ?q rdf:type ontology:Q1318295 } UNION { ?g property:P144 ?q . ?g rdf:type ontology:Q15850590 . ?q rdf:type ontology:Q15850590 } } GROUP BY ?g } } . { SELECT DISTINCT ?k ( COUNT ( ?j ) AS ?a ) WHERE { { ?k property:P144 ?j . ?k rdf:type ontology:Q15850590 . ?j rdf:type ontology:Q1318295 } UNION { ?k property:P144 ?j . ?k rdf:type ontology:Q15850590 . ?j rdf:type ontology:Q15850590 } } GROUP BY ?k } . FILTER ( ?a = ?n ) }
Miss Saigon Aida L'elisir d'amore Betly, o sia La capanna svizzera Teseo Norma Colas Breugnon (opera) Così fan tutte Betrothal in a Monastery The Wizard of Oz Spieloper Tuck Everlasting Pietje Bell The Wizard of Oz Comus
Norma, Miss Saigon and Così fan tutte are adapted from max number of narratives and theatrical genres
Norma Miss Saigon Così fan tutte
action argmax
action union
action find_tuple_counts
relation based on
type theatrical genre
type narrative
action find_tuple_counts
relation based on
type theatrical genre
type theatrical genre
[{'concept': 'theatrical genre'}, 'based on', [{'concept': 'narrative'}, {'concept': 'theatrical genre'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?n ) { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?c ) WHERE { { ?g property:based_on ?q . ?g rdf:type ontology:theatrical_genre . ?q rdf:type ontology:narrative } UNION { ?g property:based_on ?q . ?g rdf:type ontology:theatrical_genre . ?q rdf:type ontology:theatrical_genre } } GROUP BY ?g } } . { SELECT DISTINCT ?k ( COUNT ( ?j ) AS ?a ) WHERE { { ?k property:based_on ?j . ?k rdf:type ontology:theatrical_genre . ?j rdf:type ontology:narrative } UNION { ?k property:based_on ?j . ?k rdf:type ontology:theatrical_genre . ?j rdf:type ontology:theatrical_genre } } GROUP BY ?k } . FILTER ( ?a = ?n ) }
[]