Simple Question (Direct)
Simple Question
Q234992
P19
Q56061
USER
Which administrative territory was Lynne Cheney born in ?
(Q234992,P19,c(Q56061))
action filter_type
action find
entity Q234992
relation P19
type Q56061
['Q234992', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q234992 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Lynne Cheney
action filter_type
action find
entity Lynne Cheney
relation place of birth
type administrative territorial entity
['Lynne Cheney', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Lynne_Cheney property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q223177
SYSTEM
Casper
Q223177
(Q234992,P19,c(Q56061))
action filter_type
action find
entity Q234992
relation P19
type Q56061
Lynne Cheney was born to [ANSWER]
['Q234992', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q234992 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Casper
Lynne Cheney was born to Casper
Casper
action filter_type
action find
entity Lynne Cheney
relation place of birth
type administrative territorial entity
['Lynne Cheney', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Lynne_Cheney property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q234992
P50
Q2342494
USER
Which collectable is written by that person ?
(c(Q2342494),P50,Q223177)
action filter_type
action find_reverse
entity Q234992
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q223177']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q2342494 . ?s property:P50 resource:Q234992 }
Lynne Cheney
action filter_type
action find_reverse
entity Lynne Cheney
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Casper']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:collectable . ?s property:author resource:Lynne_Cheney }
[]
collectable
Q7531271
SYSTEM
Sisters
Q7531271
(c(Q2342494),P50,Q223177)
action filter_type
action find_reverse
entity Q234992
relation P50
type Q2342494
Are [ANSWER] is written by that person
[{'concept': 'Q2342494'}, 'P50', 'Q223177']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q2342494 . ?s property:P50 resource:Q234992 }
Sisters
Are Sisters is written by that person
Sisters
action filter_type
action find_reverse
entity Lynne Cheney
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Casper']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:collectable . ?s property:author resource:Lynne_Cheney }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q7531271 Q545826 Q544744
P495
Q15617994
USER
Did that collectable originated in Jelitkowo and Lindenberg im Allgäu ?
(Q7531271,P495,Q545826) (Q7531271,P495,Q544744)
action is_in
entity Q7531271
action intersection
action find_reverse
entity Q545826
relation P495
action find_reverse
entity Q544744
relation P495
['Q7531271', 'P495', 'Q545826'] ['Q7531271', 'P495', 'Q544744']
ASK WHERE { resource:Q7531271 property:P495 resource:Q545826 . resource:Q7531271 property:P495 resource:Q544744 }
Sisters Jelitkowo Lindenberg im Allgäu
action is_in
entity Sisters
action intersection
action find_reverse
entity Jelitkowo
relation country of origin
action find_reverse
entity Lindenberg im Allgäu
relation country of origin
['Sisters', 'country of origin', 'Jelitkowo'] ['Sisters', 'country of origin', 'Lindenberg im Allgäu']
ASK WHERE { resource:Sisters property:country_of_origin resource:Jelitkowo . resource:Sisters property:country_of_origin resource:Lindenberg_im_Allgäu }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q7531271,P495,Q545826) (Q7531271,P495,Q544744)
action is_in
entity Q7531271
action intersection
action find_reverse
entity Q545826
relation P495
action find_reverse
entity Q544744
relation P495
[ANSWER]
['Q7531271', 'P495', 'Q545826'] ['Q7531271', 'P495', 'Q544744']
ASK WHERE { resource:Q7531271 property:P495 resource:Q545826 . resource:Q7531271 property:P495 resource:Q544744 }
No
action is_in
entity Sisters
action intersection
action find_reverse
entity Jelitkowo
relation country of origin
action find_reverse
entity Lindenberg im Allgäu
relation country of origin
['Sisters', 'country of origin', 'Jelitkowo'] ['Sisters', 'country of origin', 'Lindenberg im Allgäu']
ASK WHERE { resource:Sisters property:country_of_origin resource:Jelitkowo . resource:Sisters property:country_of_origin resource:Lindenberg_im_Allgäu }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q30 Q234992
P25 P27
Q502895
USER
Which people have Lynne Cheney as mom and are civilians of United States of America ?
AND((c(Q502895),P25,Q234992), (c(Q502895),P27,Q30))
action filter_type
action intersection
action find_reverse
entity Q234992
relation P25
action find_reverse
entity Q30
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P25', 'Q234992'], [{'concept': 'Q502895'}, 'P27', 'Q30']]}
SELECT DISTINCT ?o WHERE { ?o property:P25 resource:Q234992 . ?o property:P27 resource:Q30 . ?o rdf:type ontology:Q502895 }
United States of America Lynne Cheney
action filter_type
action intersection
action find_reverse
entity Lynne Cheney
relation mother
action find_reverse
entity United States of America
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'mother', 'Lynne Cheney'], [{'concept': 'common name'}, 'country of citizenship', 'United States of America']]}
SELECT DISTINCT ?o WHERE { ?o property:mother resource:Lynne_Cheney . ?o property:country_of_citizenship resource:United_States_of_America . ?o rdf:type ontology:common_name }
[]
common name
Q442226
SYSTEM
Mary Cheney
Q442226
AND((c(Q502895),P25,Q234992), (c(Q502895),P27,Q30))
action filter_type
action intersection
action find_reverse
entity Q234992
relation P25
action find_reverse
entity Q30
relation P27
type Q502895
[ANSWER] have Lynne Cheney as mom and are civilians of United States of America
{'AND': [[{'concept': 'Q502895'}, 'P25', 'Q234992'], [{'concept': 'Q502895'}, 'P27', 'Q30']]}
SELECT DISTINCT ?o WHERE { ?o property:P25 resource:Q234992 . ?o property:P27 resource:Q30 . ?o rdf:type ontology:Q502895 }
Mary Cheney
Mary Cheney have Lynne Cheney as mom and are civilians of United States of America
Mary Cheney
action filter_type
action intersection
action find_reverse
entity Lynne Cheney
relation mother
action find_reverse
entity United States of America
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'mother', 'Lynne Cheney'], [{'concept': 'common name'}, 'country of citizenship', 'United States of America']]}
SELECT DISTINCT ?o WHERE { ?o property:mother resource:Lynne_Cheney . ?o property:country_of_citizenship resource:United_States_of_America . ?o rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q442226 Q28379
P27
Q15617994
USER
Is Baranova the native country of Mary Cheney ?
(Q442226,P27,Q28379)
action is_in
entity Q28379
action find
entity Q442226
relation P27
['Q442226', 'P27', 'Q28379']
ASK WHERE { resource:Q442226 property:P27 resource:Q28379 }
Mary Cheney Baranova
action is_in
entity Baranova
action find
entity Mary Cheney
relation country of citizenship
['Mary Cheney', 'country of citizenship', 'Baranova']
ASK WHERE { resource:Mary_Cheney property:country_of_citizenship resource:Baranova }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q442226,P27,Q28379)
action is_in
entity Q28379
action find
entity Q442226
relation P27
[ANSWER]
['Q442226', 'P27', 'Q28379']
ASK WHERE { resource:Q442226 property:P27 resource:Q28379 }
No
action is_in
entity Baranova
action find
entity Mary Cheney
relation country of citizenship
['Mary Cheney', 'country of citizenship', 'Baranova']
ASK WHERE { resource:Mary_Cheney property:country_of_citizenship resource:Baranova }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1434
Q36649 Q386724 Q2342494
USER
How many collectables are set in exactly 1 visual artss or works ?
(c(Q2342494),P1434,c(Q36649)|c(Q386724))
action count
action equal
action union
action find_tuple_counts
relation P1434
type Q2342494
type Q36649
action find_tuple_counts
relation P1434
type Q2342494
type Q386724
value 1
[{'concept': 'Q2342494'}, 'P1434', [{'concept': 'Q36649'}, {'concept': 'Q386724'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) ?r WHERE { { ?r rdf:type ontology:Q2342494 . ?w rdf:type ontology:Q36649 . ?r property:P1434 ?w } UNION { ?r property:P1434 ?w . ?r rdf:type ontology:Q2342494 . ?w rdf:type ontology:Q386724 } } GROUP BY ?r } . FILTER ( ?p = 1 ) }
action count
action equal
action union
action find_tuple_counts
relation describes the fictional universe
type collectable
type visual arts
action find_tuple_counts
relation describes the fictional universe
type collectable
type work
value 1
[{'concept': 'collectable'}, 'describes the fictional universe', [{'concept': 'visual arts'}, {'concept': 'work'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) ?r WHERE { { ?r rdf:type ontology:collectable . ?w rdf:type ontology:visual_arts . ?r property:describes_the_fictional_universe ?w } UNION { ?r property:describes_the_fictional_universe ?w . ?r rdf:type ontology:collectable . ?w rdf:type ontology:work } } GROUP BY ?r } . FILTER ( ?p = 1 ) }
[]
visual arts work collectable
SYSTEM
8
Q27055639 Q16170368 Q23092039 Q22682114 Q2515250 Q2330751 Q23541423 Q27030881
(c(Q2342494),P1434,c(Q36649)|c(Q386724))
action count
action equal
action union
action find_tuple_counts
relation P1434
type Q2342494
type Q36649
action find_tuple_counts
relation P1434
type Q2342494
type Q386724
value 1
[ANSWER]
[{'concept': 'Q2342494'}, 'P1434', [{'concept': 'Q36649'}, {'concept': 'Q386724'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) ?r WHERE { { ?r rdf:type ontology:Q2342494 . ?w rdf:type ontology:Q36649 . ?r property:P1434 ?w } UNION { ?r property:P1434 ?w . ?r rdf:type ontology:Q2342494 . ?w rdf:type ontology:Q386724 } } GROUP BY ?r } . FILTER ( ?p = 1 ) }
Alien: The Weyland-Yutani Report The Walking Dead: The Fall of the Governor Robert Kirkman's The Walking Dead: Descent Robert Kirkman's The Walking Dead: Invasion The Walking Dead: The Road to Woodbury The Walking Dead: Rise of the Governor The Walking Dead: The Fall of the Governor (Part 2) Alien Woman: The Making of Lt. Ellen Ripley
8
action count
action equal
action union
action find_tuple_counts
relation describes the fictional universe
type collectable
type visual arts
action find_tuple_counts
relation describes the fictional universe
type collectable
type work
value 1
[{'concept': 'collectable'}, 'describes the fictional universe', [{'concept': 'visual arts'}, {'concept': 'work'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) ?r WHERE { { ?r rdf:type ontology:collectable . ?w rdf:type ontology:visual_arts . ?r property:describes_the_fictional_universe ?w } UNION { ?r property:describes_the_fictional_universe ?w . ?r rdf:type ontology:collectable . ?w rdf:type ontology:work } } GROUP BY ?r } . FILTER ( ?p = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q14511869 Q30
P161 P6
Q502895
USER
Which people do United States of America serve as the head of government for or starred in Magic in the Moonlight ?
OR((Q30,P6,c(Q502895)), (Q14511869,P161,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q14511869
relation P161
type Q502895
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q14511869', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q30 property:P6 ?f } UNION { resource:Q14511869 property:P161 ?f } } . ?f rdf:type ontology:Q502895 }
Magic in the Moonlight United States of America
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Magic in the Moonlight
relation cast member
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Magic in the Moonlight', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?f WHERE { { { resource:United_States_of_America property:head_of_government ?f } UNION { resource:Magic_in_the_Moonlight property:cast_member ?f } } . ?f rdf:type ontology:common_name }
[]
common name
Q22686 Q23505 Q207 Q8007 Q263149 Q11881 Q35041 Q12325 Q35678 Q9696
SYSTEM
Some of them are Donald Trump, George H. W. Bush, George W. Bush, Franklin Delano Roosevelt, Erica Leerhsen, John Tyler, William McKinley, James Buchanan, Benjamin Harrison, John F. Kennedy
Q35171 Q11815 Q11816 Q11817 Q9588 Q11812 Q12306 Q91 Q12325 Q33866 Q138327 Q35648 Q35498 Q162492 Q9582 Q35678 Q1341507 Q11869 Q207 Q11813 Q35236 Q23685 Q9696 Q22686 Q34597 Q36023 Q11881 Q263149 Q12312 Q60659 Q11806 Q35286 Q9640 Q558301 Q35686 Q11820 Q147077 Q35041 Q8007 Q228931 Q34296 Q76 Q8612 Q34836 Q23505 Q241897 Q23 Q1124 Q269835 Q705602 Q11613 Q11896 Q9916 Q9960 Q11891
OR((Q30,P6,c(Q502895)), (Q14511869,P161,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q14511869
relation P161
type Q502895
As the head of government for President [ANSWERS] United States of America serve
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q14511869', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q30 property:P6 ?f } UNION { resource:Q14511869 property:P161 ?f } } . ?f rdf:type ontology:Q502895 }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Richard Nixon Thomas Jefferson Millard Fillmore Abraham Lincoln James Buchanan Theodore Roosevelt Catherine McCormack William Howard Taft Chester A. Arthur Colin Firth Gerald Ford Benjamin Harrison Lionel Abelanski William Henry Harrison George W. Bush James Madison Herbert Hoover Jimmy Carter John F. Kennedy Donald Trump James A. Garfield Calvin Coolidge John Tyler Erica Leerhsen Franklin Pierce Ute Lemper John Adams Warren G. Harding Lyndon B. Johnson Hamish Linklater Rutherford B. Hayes Martin Van Buren Emma Stone William McKinley Franklin Delano Roosevelt Marcia Gay Harden Woodrow Wilson Barack Obama Andrew Johnson Ulysses S. Grant George H. W. Bush Jacki Weaver George Washington Bill Clinton Eileen Atkins Simon McBurney Harry S. Truman Zachary Taylor Dwight D. Eisenhower Ronald Reagan James K. Polk
As the head of government for President Donald Trump, George H. W. Bush, George W. Bush, Franklin Delano Roosevelt, Erica Leerhsen, John Tyler, William McKinley, James Buchanan, Benjamin Harrison and John F. Kennedy United States of America serve
Donald Trump George H. W. Bush George W. Bush Franklin Delano Roosevelt Erica Leerhsen John Tyler William McKinley James Buchanan Benjamin Harrison John F. Kennedy
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Magic in the Moonlight
relation cast member
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Magic in the Moonlight', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?f WHERE { { { resource:United_States_of_America property:head_of_government ?f } UNION { resource:Magic_in_the_Moonlight property:cast_member ?f } } . ?f rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P674
Q502895 Q571 Q223393
USER
How many people plays a role in atleast 1 books and literary genres ?
(c(Q571)|c(Q223393),P674,c(Q502895))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q571
action find_reverse_tuple_counts
relation P674
type Q502895
type Q223393
value 1
[[{'concept': 'Q571'}, {'concept': 'Q223393'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { FILTER ( ?u >= 1 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?l WHERE { VALUES ( ?s ) { ( ontology:Q571 ) ( ontology:Q223393 ) } . ?h rdf:type ?s } GROUP BY ?l } }
action count
action atleast
action union
action find_reverse_tuple_counts
relation characters
type common name
type book
action find_reverse_tuple_counts
relation characters
type common name
type literary genre
value 1
[[{'concept': 'book'}, {'concept': 'literary genre'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { FILTER ( ?u >= 1 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?l WHERE { VALUES ( ?s ) { ( ontology:book ) ( ontology:literary_genre ) } . ?h rdf:type ?s } GROUP BY ?l } }
[]
common name book literary genre
SYSTEM
125
Q5254 Q18720650 Q33923 Q2054 Q33760 Q676555 Q43706 Q36724 Q1093574 Q295824 Q635 Q41370 Q3867479 Q234022 Q92639 Q243203 Q130221 Q41155 Q270438 Q2254800 Q44265 Q317554 Q244912 Q41980 Q2721219 Q2521377 Q1067 Q367387 Q5343069 Q172916 Q59180 Q188646 Q8778 Q223440 Q83041 Q9438 Q81018 Q232913 Q5264 Q1133523 Q9077 Q152717 Q207535 Q426862 Q154938 Q359237 Q4344 Q172353 Q43939 Q355903 Q1425 Q312537 Q43989 Q111559 Q297776 Q83400 Q76721 Q160441 Q7734 Q311456 Q3236830 Q1398 Q7328 Q434217 Q166876 Q7198 Q8747 Q118081 Q83375 Q549041 Q34943 Q170859 Q8011 Q48305 Q8018 Q8409 Q451516 Q102851 Q706003 Q310686 Q316876 Q8581 Q913 Q785250 Q211246 Q234533 Q366270 Q41866 Q199991 Q2755054 Q466048 Q868 Q80048 Q247137 Q9458 Q170335 Q1402591 Q172248 Q134646 Q188411 Q2497107 Q1541 Q132786 Q6197 Q859 Q203792 Q325026 Q1048 Q665165 Q6691 Q39837 Q36303 Q258369 Q131463 Q267733 Q43746 Q40662 Q205365 Q448586 Q315347 Q332750 Q1405 Q1401 Q207370 Q60059
(c(Q571)|c(Q223393),P674,c(Q502895))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q571
action find_reverse_tuple_counts
relation P674
type Q502895
type Q223393
value 1
[ANSWER]
[[{'concept': 'Q571'}, {'concept': 'Q223393'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { FILTER ( ?u >= 1 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?l WHERE { VALUES ( ?s ) { ( ontology:Q571 ) ( ontology:Q223393 ) } . ?h rdf:type ?s } GROUP BY ?l } }
Folquet de Marselha Nyssia Peter Seneca Bertrand Russell Francis of Assisi John Chrysostom Attila the Hun Ruggieri degli Ubaldini Peter I of Portugal Cleopatra David Musciatto Franzesi Inês de Castro Christos Papadimitriou Publius Papinius Statius Frederick II, Holy Roman Emperor Heraclitus Charles of Valois Cunizza da Romano Benedict of Nursia Hugh of Saint Victor Hezekiah Democritus Farinata degli Uberti Ottaviano degli Ubaldini Dante Alighieri William II of Sicily Edward Garrard Marsh John XXI Diogenes of Sinope Lucan Galen Lucius Junius Brutus Anaxagoras Thomas Aquinas Judas Iscariot Beatrice Portinari Hippocrates Jephthah Moses Henry VII, Holy Roman Emperor Roland Guido Bonatti Bede Charles Martel of Anjou Arnaut Daniel Pyrrhus Anselm of Canterbury Siger of Brabant Trajan Gyges of Lydia Grigori Rasputin Judah Maccabee Pedanius Dioscorides Paulo da Gama Godfrey of Bouillon Rabanus Maurus Joshua Orosius Princess Changping Virgil Vasco da Gama Candaules Isidore of Seville Ovid Euclid Pope Celestine V Empedocles Graciano Ptolemy Nicholas III Avicenna Euripides Augustine of Hippo Alexander the Great Gaius Scribonius Curio Boethius Ugolino della Gherardesca Dionysius the Areopagite Guido Cavalcanti Saladin Socrates Petrus Comestor Caiaphas Cornelia Africana Guido Guinizelli Justinian I Joachim of Fiore Guido I da Montefeltro Francesca da Rimini Aristotle Al Capone Aelius Donatus Muhammad Constance, Queen of Sicily Ohthere Marcus Junius Brutus Boniface VIII Bernard of Clairvaux Igor Svyatoslavich Cicero Anastasius II Horace Plato Robert Guiscard Anacharsis Julius Caesar Sordello Homer Averroes Thales Peter Damian Clement V Thaïs Bonaventure John the Baptist Cain Fra Dolcino Peter Lombard Dionysius I of Syracuse Augustus Petrarch Gaius Cassius Longinus Albertus Magnus
125
action count
action atleast
action union
action find_reverse_tuple_counts
relation characters
type common name
type book
action find_reverse_tuple_counts
relation characters
type common name
type literary genre
value 1
[[{'concept': 'book'}, {'concept': 'literary genre'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { FILTER ( ?u >= 1 ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?l WHERE { VALUES ( ?s ) { ( ontology:book ) ( ontology:literary_genre ) } . ?h rdf:type ?s } GROUP BY ?l } }
[]