Simple Question (Direct)
Simple Question
Q2939454
P27
Q15617994
USER
Which administrative territory is Carlos Rosa a civilian of ?
(Q2939454,P27,c(Q15617994))
action filter_type
action find
entity Q2939454
relation P27
type Q15617994
['Q2939454', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q2939454 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
Carlos Rosa
action filter_type
action find
entity Carlos Rosa
relation country of citizenship
type designation for an administrative territorial entity
['Carlos Rosa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Carlos_Rosa property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q786
SYSTEM
Dominican Republic
Q786
(Q2939454,P27,c(Q15617994))
action filter_type
action find
entity Q2939454
relation P27
type Q15617994
The [ANSWER] is Carlos Rosa a civilian of
['Q2939454', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q2939454 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
Dominican Republic
The Dominican Republic is Carlos Rosa a civilian of
Dominican Republic
action filter_type
action find
entity Carlos Rosa
relation country of citizenship
type designation for an administrative territorial entity
['Carlos Rosa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Carlos_Rosa property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2939454
P54
Q12973014
USER
What is that person a member of ?
(Q786,P54,c(Q12973014))
action filter_type
action find
entity Q2939454
relation P54
type Q12973014
['Q786', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?g WHERE { resource:Q2939454 property:P54 ?g . ?g rdf:type ontology:Q12973014 }
Carlos Rosa
action filter_type
action find
entity Carlos Rosa
relation member of sports team
type sports team
['Dominican Republic', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?g WHERE { resource:Carlos_Rosa property:member_of_sports_team ?g . ?g rdf:type ontology:sports_team }
[]
sports team
Q670376
SYSTEM
Arizona Diamondbacks
Q670376
(Q786,P54,c(Q12973014))
action filter_type
action find
entity Q2939454
relation P54
type Q12973014
That person a member of is the [ANSWER]
['Q786', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?g WHERE { resource:Q2939454 property:P54 ?g . ?g rdf:type ontology:Q12973014 }
Arizona Diamondbacks
That person a member of is the Arizona Diamondbacks
Arizona Diamondbacks
action filter_type
action find
entity Carlos Rosa
relation member of sports team
type sports team
['Dominican Republic', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?g WHERE { resource:Carlos_Rosa property:member_of_sports_team ?g . ?g rdf:type ontology:sports_team }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5983687 Q2939454
P19
Q56061
USER
Which administrative territories are the birthplace of Carlos Rosa or Luis Ignacio González ?
OR((Q2939454,P19,c(Q56061)), (Q5983687,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2939454
relation P19
action find
entity Q5983687
relation P19
type Q56061
{'OR': [['Q2939454', 'P19', {'concept': 'Q56061'}], ['Q5983687', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { { ?r property:P19 ?w . VALUES ( ?r ) { ( resource:Q2939454 ) ( resource:Q5983687 ) } } . ?w rdf:type ontology:Q56061 }
Luis Ignacio González Carlos Rosa
action filter_type
action union
action find
entity Carlos Rosa
relation place of birth
action find
entity Luis Ignacio González
relation place of birth
type administrative territorial entity
{'OR': [['Carlos Rosa', 'place of birth', {'concept': 'administrative territorial entity'}], ['Luis Ignacio González', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { ?r property:place_of_birth ?w . VALUES ( ?r ) { ( resource:Carlos_Rosa ) ( resource:Luis_Ignacio_González ) } } . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q681999 Q1489
SYSTEM
San Francisco de Macorís, Mexico City
Q681999 Q1489
OR((Q2939454,P19,c(Q56061)), (Q5983687,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2939454
relation P19
action find
entity Q5983687
relation P19
type Q56061
[ANSWERS] are the birthplace of Carlos Rosa or Luis Ignacio González
{'OR': [['Q2939454', 'P19', {'concept': 'Q56061'}], ['Q5983687', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { { ?r property:P19 ?w . VALUES ( ?r ) { ( resource:Q2939454 ) ( resource:Q5983687 ) } } . ?w rdf:type ontology:Q56061 }
San Francisco de Macorís Mexico City
San Francisco de Macorís and Mexico City are the birthplace of Carlos Rosa or Luis Ignacio González
San Francisco de Macorís Mexico City
action filter_type
action union
action find
entity Carlos Rosa
relation place of birth
action find
entity Luis Ignacio González
relation place of birth
type administrative territorial entity
{'OR': [['Carlos Rosa', 'place of birth', {'concept': 'administrative territorial entity'}], ['Luis Ignacio González', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { ?r property:place_of_birth ?w . VALUES ( ?r ) { ( resource:Carlos_Rosa ) ( resource:Luis_Ignacio_González ) } } . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q681999 Q1489
P17
Q15617994
USER
Which administrative territories are San Francisco de Macorís and Mexico City located in ?
(Q681999,P17,c(Q15617994)) (Q1489,P17,c(Q15617994))
action union
action filter_type
action find
entity Q681999
relation P17
type Q15617994
action filter_type
action find
entity Q1489
relation P17
type Q15617994
['Q681999', 'P17', {'concept': 'Q15617994'}] ['Q1489', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?g property:P17 ?x . VALUES ( ?g ) { ( resource:Q681999 ) ( resource:Q1489 ) } }
San Francisco de Macorís Mexico City
action union
action filter_type
action find
entity San Francisco de Macorís
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Mexico City
relation country
type designation for an administrative territorial entity
['San Francisco de Macorís', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Mexico City', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?g property:country ?x . VALUES ( ?g ) { ( resource:San_Francisco_de_Macorís ) ( resource:Mexico_City ) } }
[]
designation for an administrative territorial entity
Q786 Q96
SYSTEM
Dominican Republic, Mexico
Q786 Q96
(Q681999,P17,c(Q15617994)) (Q1489,P17,c(Q15617994))
action union
action filter_type
action find
entity Q681999
relation P17
type Q15617994
action filter_type
action find
entity Q1489
relation P17
type Q15617994
[ANSWERS]
['Q681999', 'P17', {'concept': 'Q15617994'}] ['Q1489', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?g property:P17 ?x . VALUES ( ?g ) { ( resource:Q681999 ) ( resource:Q1489 ) } }
Dominican Republic Mexico
Which administrative territories are San Francisco de Macorís and Mexico City located in
Dominican Republic Mexico
action union
action filter_type
action find
entity San Francisco de Macorís
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Mexico City
relation country
type designation for an administrative territorial entity
['San Francisco de Macorís', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Mexico City', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?g property:country ?x . VALUES ( ?g ) { ( resource:San_Francisco_de_Macorís ) ( resource:Mexico_City ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q786 Q96
P47
Q15617994
USER
Which administrative territories have a shared border with Dominican Republic and Mexico ?
(Q786,P47,c(Q15617994)) (Q96,P47,c(Q15617994))
action union
action filter_type
action find
entity Q786
relation P47
type Q15617994
action filter_type
action find
entity Q96
relation P47
type Q15617994
['Q786', 'P47', {'concept': 'Q15617994'}] ['Q96', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { ?p rdf:type ontology:Q15617994 . resource:Q96 property:P47 ?p } UNION { ?p rdf:type ontology:Q15617994 . resource:Q786 property:P47 ?p } }
Dominican Republic Mexico
action union
action filter_type
action find
entity Dominican Republic
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Mexico
relation shares border with
type designation for an administrative territorial entity
['Dominican Republic', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Mexico', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Mexico property:shares_border_with ?p } UNION { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Dominican_Republic property:shares_border_with ?p } }
[]
designation for an administrative territorial entity
Q30 Q717 Q242
SYSTEM
United States of America, Venezuela, Belize
Q790 Q717 Q774 Q242 Q30
(Q786,P47,c(Q15617994)) (Q96,P47,c(Q15617994))
action union
action filter_type
action find
entity Q786
relation P47
type Q15617994
action filter_type
action find
entity Q96
relation P47
type Q15617994
[ANSWERS] have a shared border with Dominican Republic and Mexico
['Q786', 'P47', {'concept': 'Q15617994'}] ['Q96', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { ?p rdf:type ontology:Q15617994 . resource:Q96 property:P47 ?p } UNION { ?p rdf:type ontology:Q15617994 . resource:Q786 property:P47 ?p } }
Haiti Venezuela Guatemala Belize United States of America
United States of America, Venezuela and Belize have a shared border with Dominican Republic and Mexico
United States of America Venezuela Belize
action union
action filter_type
action find
entity Dominican Republic
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Mexico
relation shares border with
type designation for an administrative territorial entity
['Dominican Republic', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Mexico', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Mexico property:shares_border_with ?p } UNION { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Dominican_Republic property:shares_border_with ?p } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q242
P85
Q7725634
USER
Which is the national anthem of that administrative territory ?
(Q242,P85,c(Q7725634))
action filter_type
action find
entity Q242
relation P85
type Q7725634
['Q242', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?t WHERE { resource:Q242 property:P85 ?t . ?t rdf:type ontology:Q7725634 }
Belize
action filter_type
action find
entity Belize
relation anthem
type literary work
['Belize', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?t WHERE { resource:Belize property:anthem ?t . ?t rdf:type ontology:literary_work }
[]
literary work
Clarification for simple ques.
Q30
SYSTEM
Did you mean United States of America ?
Q30 Q717 Q242
(Q30,P85,c(Q7725634)) (Q717,P85,c(Q7725634)) (Q242,P85,c(Q7725634))
[ANSWER]
['Q30', 'P85', {'concept': 'Q7725634'}] ['Q717', 'P85', {'concept': 'Q7725634'}] ['Q242', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?t WHERE { resource:Q242 property:P85 ?t . ?t rdf:type ontology:Q7725634 }
United States of America Venezuela Belize
Did you mean United States of America ?
United States of America
['United States of America', 'anthem', {'concept': 'literary work'}] ['Venezuela', 'anthem', {'concept': 'literary work'}] ['Belize', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?t WHERE { resource:Belize property:anthem ?t . ?t rdf:type ontology:literary_work }
[]
Simple Question (Coreferenced)
USER
No, I meant Belize. Could you tell me the answer for that?
(Q242,P85,c(Q7725634))
Q242
['Q242', 'P85', {'concept': 'Q7725634'}]
['Belize', 'anthem', {'concept': 'literary work'}]
[]
Q40807
SYSTEM
God Save the Queen
Q40807
(Q242,P85,c(Q7725634))
action filter_type
action find
entity Q242
relation P85
type Q7725634
The national anthem of that administrative territory is the [ANSWER]
['Q242', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?t WHERE { resource:Q242 property:P85 ?t . ?t rdf:type ontology:Q7725634 }
God Save the Queen
The national anthem of that administrative territory is the God Save the Queen
God Save the Queen
action filter_type
action find
entity Belize
relation anthem
type literary work
['Belize', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?t WHERE { resource:Belize property:anthem ?t . ?t rdf:type ontology:literary_work }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q15617994 Q20667921 Q515
USER
How many administrative territories have approximately 1 french administrative divisions or cities have their center of administration ?
(c(Q20667921)|c(Q515),P1376,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
value 1
[[{'concept': 'Q20667921'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?w WHERE { { ?t property:P1376 ?w . ?w rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q515 } UNION { ?t property:P1376 ?w . ?w rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q20667921 } } GROUP BY ?w } . FILTER ( ?l = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
value 1
[[{'concept': 'type of french administrative division'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?w WHERE { { ?t property:capital_of ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:city } UNION { ?t property:capital_of ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?w } . FILTER ( ?l = 1 ) }
[]
designation for an administrative territorial entity type of french administrative division city
SYSTEM
143
Q12631 Q414 Q3368 Q3044731 Q399 Q258 Q155 Q12689 Q3377 Q3372 Q3093 Q2528268 Q12594 Q736 Q12574 Q12792 Q843 Q2007 Q12700 Q12709 Q1050 Q298 Q115 Q114 Q12642 Q3216 Q3194 Q12804 Q12808 Q3326 Q696651 Q3286 Q948 Q3266 Q3105 Q639100 Q33788 Q702 Q12740 Q12745 Q12779 Q833 Q12607 Q790 Q796 Q794 Q889 Q884 Q881 Q2281221 Q12694 Q12515 Q12517 Q3364 Q541095 Q3148 Q12675 Q12589 Q12584 Q12580 Q3131 Q12788 Q12784 Q12782 Q1037 Q1033 Q1030 Q750 Q12736 Q12657 Q12652 Q30831 Q12556 Q878 Q46130 Q3044714 Q12816 Q1951 Q3353 Q3357 Q3184 Q711 Q717 Q2900529 Q1999970 Q155019 Q107426 Q1948 Q12661 Q27 Q225 Q222 Q47261 Q1270623 Q228 Q963 Q3125 Q3120 Q1008 Q3110307 Q12722 Q12553 Q12620 Q12626 Q12543 Q72670 Q12563 Q426025 Q568751 Q2150573 Q12536 Q3342 Q842 Q3349 Q3083 Q3249 Q12761 Q12765 Q4712 Q924 Q928 Q851 Q12717 Q3334 Q12572 Q12576 Q12578 Q347 Q3462133 Q12679 Q17 Q3207 Q212 Q211 Q218 Q974 Q3113 Q1019 Q1011 Q12758 Q12753 Q12751 Q12564
(c(Q20667921)|c(Q515),P1376,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
value 1
[ANSWER]
[[{'concept': 'Q20667921'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?w WHERE { { ?t property:P1376 ?w . ?w rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q515 } UNION { ?t property:P1376 ?w . ?w rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q20667921 } } GROUP BY ?w } . FILTER ( ?l = 1 ) }
Meuse Argentina Essonne Guyane Armenia South Africa Brazil Pas-de-Calais Eure-et-Loir Eure Aisne Mont-Blanc Marne Ecuador Loiret Vaucluse Pakistan Northwest Territories Hautes-Pyrénées Pyrénées-Orientales Swaziland Chile Ethiopia Kenya Morbihan Aveyron Aube Vienne Haute-Vienne Corrèze Saxe-Eisenach Cher Tunisia Charente Vosges Principality of Reuss-Gera New Caledonia Federated States of Micronesia Sarthe Savoie Tarn-et-Garonne Malaysia Haute-Marne Haiti Iraq Iran Afghanistan South Korea Vietnam Principality of Orange Puy-de-Dôme Gard Gers Drôme Rhin-et-Moselle Ardèche Oise Manche Maine-et-Loire Lozère Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Territoire de Belfort Rwanda Nigeria Namibia Bolivia Saône-et-Loire Nièvre Moselle Red Sea Governorate Indre-et-Loire United Arab Emirates Rhône Ouest Yonne Alberta Creuse Dordogne Ariège Mongolia Venezuela Bezirk Lothringen Upper Alsace Duchy of Lorraine Anjou Manitoba Nord Ireland Bosnia and Herzegovina Albania Duchy of Bavaria Meurthe Andorra Botswana Hautes-Alpes Jura Côte d'Ivoire Golo Haut-Rhin Indre Mayenne Meurthe-et-Moselle Hauts-de-Seine Batumi Oblast Landes Duchy of Savoy Mont-Tonnerre Unterelsaß Abbasid caliphate Côte-d'Or Oman Côtes-d'Armor Ain Calvados Seine-Saint-Denis Deux-Sèvres Duchy of Burgundy Tanzania Philippines Saudi Arabia Bas-Rhin Haute-Corse Haute-Loire Lot Lot-et-Garonne Liechtenstein Saxe-Coburg and Gotha Orne Japan Aude Ukraine Latvia Romania Democratic Republic of the Congo Allier Madagascar Cape Verde Seine-Maritime Seine-et-Marne Haute-Savoie Loir-et-Cher
143
action count
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
value 1
[[{'concept': 'type of french administrative division'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?w WHERE { { ?t property:capital_of ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:city } UNION { ?t property:capital_of ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?w } . FILTER ( ?l = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P658
Q7725634 Q482994 Q2031291
USER
Which literary works were contained in min number of albums or releases ?
(c(Q482994)|c(Q2031291),P658,c(Q7725634))
action argmin
action union
action find_reverse_tuple_counts
relation P658
type Q7725634
type Q482994
action find_reverse_tuple_counts
relation P658
type Q7725634
type Q2031291
[[{'concept': 'Q482994'}, {'concept': 'Q2031291'}], 'P658', {'concept': 'Q7725634'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?t ) ?m WHERE { { ?l property:P658 ?m . ?m rdf:type ontology:Q7725634 . ?l rdf:type ontology:Q482994 } UNION { ?m rdf:type ontology:Q7725634 . ?l rdf:type ontology:Q2031291 . ?l property:P658 ?m } } GROUP BY ?m } } . FILTER ( ?e = ?z ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) ?g WHERE { { ?g rdf:type ontology:Q7725634 . ?c rdf:type ontology:Q482994 . ?c property:P658 ?g } UNION { ?c property:P658 ?g . ?c rdf:type ontology:Q2031291 . ?g rdf:type ontology:Q7725634 } } GROUP BY ?g } }
action argmin
action union
action find_reverse_tuple_counts
relation tracklist
type literary work
type album
action find_reverse_tuple_counts
relation tracklist
type literary work
type release
[[{'concept': 'album'}, {'concept': 'release'}], 'tracklist', {'concept': 'literary work'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?t ) ?m WHERE { { ?l property:tracklist ?m . ?m rdf:type ontology:literary_work . ?l rdf:type ontology:album } UNION { ?m rdf:type ontology:literary_work . ?l rdf:type ontology:release . ?l property:tracklist ?m } } GROUP BY ?m } } . FILTER ( ?e = ?z ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) ?g WHERE { { ?g rdf:type ontology:literary_work . ?c rdf:type ontology:album . ?c property:tracklist ?g } UNION { ?c property:tracklist ?g . ?c rdf:type ontology:release . ?g rdf:type ontology:literary_work } } GROUP BY ?g } }
[]
literary work album release
Q1128775
SYSTEM
Vogue
Q1128775
(c(Q482994)|c(Q2031291),P658,c(Q7725634))
action argmin
action union
action find_reverse_tuple_counts
relation P658
type Q7725634
type Q482994
action find_reverse_tuple_counts
relation P658
type Q7725634
type Q2031291
[ANSWER] was contained in min number of albums or releases
[[{'concept': 'Q482994'}, {'concept': 'Q2031291'}], 'P658', {'concept': 'Q7725634'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?t ) ?m WHERE { { ?l property:P658 ?m . ?m rdf:type ontology:Q7725634 . ?l rdf:type ontology:Q482994 } UNION { ?m rdf:type ontology:Q7725634 . ?l rdf:type ontology:Q2031291 . ?l property:P658 ?m } } GROUP BY ?m } } . FILTER ( ?e = ?z ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) ?g WHERE { { ?g rdf:type ontology:Q7725634 . ?c rdf:type ontology:Q482994 . ?c property:P658 ?g } UNION { ?c property:P658 ?g . ?c rdf:type ontology:Q2031291 . ?g rdf:type ontology:Q7725634 } } GROUP BY ?g } }
Vogue
Vogue was contained in min number of albums or releases
Vogue
action argmin
action union
action find_reverse_tuple_counts
relation tracklist
type literary work
type album
action find_reverse_tuple_counts
relation tracklist
type literary work
type release
[[{'concept': 'album'}, {'concept': 'release'}], 'tracklist', {'concept': 'literary work'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?t ) ?m WHERE { { ?l property:tracklist ?m . ?m rdf:type ontology:literary_work . ?l rdf:type ontology:album } UNION { ?m rdf:type ontology:literary_work . ?l rdf:type ontology:release . ?l property:tracklist ?m } } GROUP BY ?m } } . FILTER ( ?e = ?z ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) ?g WHERE { { ?g rdf:type ontology:literary_work . ?c rdf:type ontology:album . ?c property:tracklist ?g } UNION { ?c property:tracklist ?g . ?c rdf:type ontology:release . ?g rdf:type ontology:literary_work } } GROUP BY ?g } }
[]