Simple Question (Direct)
Simple Question
Q964219
P264
Q334453
USER
Which divisions are the record labels of Fred McDowell ?
(Q964219,P264,c(Q334453))
action filter_type
action find
entity Q964219
relation P264
type Q334453
['Q964219', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?u WHERE { resource:Q964219 property:P264 ?u . ?u rdf:type ontology:Q334453 }
Fred McDowell
action filter_type
action find
entity Fred McDowell
relation record label
type division
['Fred McDowell', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?u WHERE { resource:Fred_McDowell property:record_label ?u . ?u rdf:type ontology:division }
[]
division
Q1397914 Q653349
SYSTEM
Fat Possum Records, Arhoolie Records
Q1397914 Q653349
(Q964219,P264,c(Q334453))
action filter_type
action find
entity Q964219
relation P264
type Q334453
[ANSWERS] are the record labels of Fred McDowell
['Q964219', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?u WHERE { resource:Q964219 property:P264 ?u . ?u rdf:type ontology:Q334453 }
Fat Possum Records Arhoolie Records
Fat Possum Records and Arhoolie Records are the record labels of Fred McDowell
Fat Possum Records Arhoolie Records
action filter_type
action find
entity Fred McDowell
relation record label
type division
['Fred McDowell', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?u WHERE { resource:Fred_McDowell property:record_label ?u . ?u rdf:type ontology:division }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1397914 Q653349
P17
Q15617994
USER
Which administrative territories do Fat Possum Records and Arhoolie Records belong to ?
(Q1397914,P17,c(Q15617994)) (Q653349,P17,c(Q15617994))
action union
action filter_type
action find
entity Q1397914
relation P17
type Q15617994
action filter_type
action find
entity Q653349
relation P17
type Q15617994
['Q1397914', 'P17', {'concept': 'Q15617994'}] ['Q653349', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?c ) { ( resource:Q1397914 ) ( resource:Q653349 ) } . ?c property:P17 ?l }
Fat Possum Records Arhoolie Records
action union
action filter_type
action find
entity Fat Possum Records
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Arhoolie Records
relation country
type designation for an administrative territorial entity
['Fat Possum Records', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Arhoolie Records', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?c ) { ( resource:Fat_Possum_Records ) ( resource:Arhoolie_Records ) } . ?c property:country ?l }
[]
designation for an administrative territorial entity
Q30 Q30
SYSTEM
United States of America
Q30 Q30
(Q1397914,P17,c(Q15617994)) (Q653349,P17,c(Q15617994))
action union
action filter_type
action find
entity Q1397914
relation P17
type Q15617994
action filter_type
action find
entity Q653349
relation P17
type Q15617994
Fat Possum Records and Arhoolie Records belong to the [ANSWER] and [ANSWER]
['Q1397914', 'P17', {'concept': 'Q15617994'}] ['Q653349', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?c ) { ( resource:Q1397914 ) ( resource:Q653349 ) } . ?c property:P17 ?l }
United States of America United States of America
Fat Possum Records and Arhoolie Records belong to the United States of America and United States of America
United States of America United States of America
action union
action filter_type
action find
entity Fat Possum Records
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Arhoolie Records
relation country
type designation for an administrative territorial entity
['Fat Possum Records', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Arhoolie Records', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?c ) { ( resource:Fat_Possum_Records ) ( resource:Arhoolie_Records ) } . ?c property:country ?l }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1397914
P159
Q56061
USER
Which administrative territory is the headquarter location of Fat Possum Records ?
(Q1397914,P159,c(Q56061))
action filter_type
action find
entity Q1397914
relation P159
type Q56061
['Q1397914', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q1397914 property:P159 ?q . ?q rdf:type ontology:Q56061 }
Fat Possum Records
action filter_type
action find
entity Fat Possum Records
relation headquarters location
type administrative territorial entity
['Fat Possum Records', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Fat_Possum_Records property:headquarters_location ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q983822
SYSTEM
Oxford
Q983822
(Q1397914,P159,c(Q56061))
action filter_type
action find
entity Q1397914
relation P159
type Q56061
S [ANSWER] is the headquarter location of Fat Possum Records
['Q1397914', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q1397914 property:P159 ?q . ?q rdf:type ontology:Q56061 }
Oxford
S Oxford is the headquarter location of Fat Possum Records
Oxford
action filter_type
action find
entity Fat Possum Records
relation headquarters location
type administrative territorial entity
['Fat Possum Records', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Fat_Possum_Records property:headquarters_location ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q6581097 Q983822
P19 P21
Q502895
USER
Which people have place of birth as Oxford and do not have gender of male ?
AND((c(Q502895),P19,Q983822), NOT((c(Q502895),P21,Q6581097)))
action filter_type
action difference
action find_reverse
entity Q983822
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q983822'], {'NOT': [[{'concept': 'Q502895'}, 'P21', 'Q6581097']]}]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P19 resource:Q983822 . FILTER NOT EXISTS { ?o property:P21 resource:Q6581097 } }
male Oxford
action filter_type
action difference
action find_reverse
entity Oxford
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Oxford'], {'NOT': [[{'concept': 'common name'}, 'gender', 'male']]}]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:place_of_birth resource:Oxford . FILTER NOT EXISTS { ?o property:gender resource:male } }
[]
common name
Q469927 Q4762507
SYSTEM
Naomi Sims, Angela McGlowan
Q469927 Q4762507
AND((c(Q502895),P19,Q983822), NOT((c(Q502895),P21,Q6581097)))
action filter_type
action difference
action find_reverse
entity Q983822
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have place of birth as Oxford and do not have gender of male
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q983822'], {'NOT': [[{'concept': 'Q502895'}, 'P21', 'Q6581097']]}]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P19 resource:Q983822 . FILTER NOT EXISTS { ?o property:P21 resource:Q6581097 } }
Naomi Sims Angela McGlowan
Naomi Sims and Angela McGlowan have place of birth as Oxford and do not have gender of male
Naomi Sims Angela McGlowan
action filter_type
action difference
action find_reverse
entity Oxford
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Oxford'], {'NOT': [[{'concept': 'common name'}, 'gender', 'male']]}]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:place_of_birth resource:Oxford . FILTER NOT EXISTS { ?o property:gender resource:male } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q983822
P159
Q334453 Q43229
USER
How many divisions and organizations have HQ at Oxford ?
(c(Q334453),P159,Q983822) (c(Q43229),P159,Q983822)
action count
action union
action filter_type
action find_reverse
entity Q983822
relation P159
type Q334453
action filter_type
action find_reverse
entity Q983822
relation P159
type Q43229
[{'concept': 'Q334453'}, 'P159', 'Q983822'] [{'concept': 'Q43229'}, 'P159', 'Q983822']
SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { { ?u property:P159 resource:Q983822 . ?u rdf:type ontology:Q334453 } UNION { ?u property:P159 resource:Q983822 . ?u rdf:type ontology:Q43229 } }
Oxford
action count
action union
action filter_type
action find_reverse
entity Oxford
relation headquarters location
type division
action filter_type
action find_reverse
entity Oxford
relation headquarters location
type organization
[{'concept': 'division'}, 'headquarters location', 'Oxford'] [{'concept': 'organization'}, 'headquarters location', 'Oxford']
SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { { ?u property:headquarters_location resource:Oxford . ?u rdf:type ontology:division } UNION { ?u property:headquarters_location resource:Oxford . ?u rdf:type ontology:organization } }
[]
division organization
SYSTEM
1 divisions and 2 organizations
Q5426771 Q1397914 Q17108954
(c(Q334453),P159,Q983822) (c(Q43229),P159,Q983822)
action count
action union
action filter_type
action find_reverse
entity Q983822
relation P159
type Q334453
action filter_type
action find_reverse
entity Q983822
relation P159
type Q43229
[ANSWER]
[{'concept': 'Q334453'}, 'P159', 'Q983822'] [{'concept': 'Q43229'}, 'P159', 'Q983822']
SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { { ?u property:P159 resource:Q983822 . ?u rdf:type ontology:Q334453 } UNION { ?u property:P159 resource:Q983822 . ?u rdf:type ontology:Q43229 } }
FNC Inc. Fat Possum Records Square Books
1 divisions and 2 organizations
action count
action union
action filter_type
action find_reverse
entity Oxford
relation headquarters location
type division
action filter_type
action find_reverse
entity Oxford
relation headquarters location
type organization
[{'concept': 'division'}, 'headquarters location', 'Oxford'] [{'concept': 'organization'}, 'headquarters location', 'Oxford']
SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { { ?u property:headquarters_location resource:Oxford . ?u rdf:type ontology:division } UNION { ?u property:headquarters_location resource:Oxford . ?u rdf:type ontology:organization } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q983822
P190
Q20667921
USER
Which french administrative division is sister town of Oxford ?
(Q983822,P190,c(Q20667921))
action filter_type
action find
entity Q983822
relation P190
type Q20667921
['Q983822', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?f WHERE { resource:Q983822 property:P190 ?f . ?f rdf:type ontology:Q20667921 }
Oxford
action filter_type
action find
entity Oxford
relation sister city
type type of french administrative division
['Oxford', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?f WHERE { resource:Oxford property:sister_city ?f . ?f rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q426231
SYSTEM
Aubigny-sur-Nère
Q426231
(Q983822,P190,c(Q20667921))
action filter_type
action find
entity Q983822
relation P190
type Q20667921
Of [ANSWER] is sister town of Oxford
['Q983822', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?f WHERE { resource:Q983822 property:P190 ?f . ?f rdf:type ontology:Q20667921 }
Aubigny-sur-Nère
Of Aubigny-sur-Nère is sister town of Oxford
Aubigny-sur-Nère
action filter_type
action find
entity Oxford
relation sister city
type type of french administrative division
['Oxford', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?f WHERE { resource:Oxford property:sister_city ?f . ?f rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15088
Q20667921
USER
And how about Tarragona?
(Q15088,P190,c(Q20667921))
action filter_type
action find
entity Q15088
relation P190
type Q20667921
['Q15088', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?t WHERE { resource:Q15088 property:P190 ?t . ?t rdf:type ontology:Q20667921 }
Tarragona
action filter_type
action find
entity Tarragona
relation sister city
type type of french administrative division
['Tarragona', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?t WHERE { resource:Tarragona property:sister_city ?t . ?t rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q6548 Q6397 Q238205
SYSTEM
Orléans, Avignon, Voiron
Q6548 Q6397 Q238205
(Q15088,P190,c(Q20667921))
action filter_type
action find
entity Q15088
relation P190
type Q20667921
[ANSWERS]
['Q15088', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?t WHERE { resource:Q15088 property:P190 ?t . ?t rdf:type ontology:Q20667921 }
Orléans Avignon Voiron
Orléans Avignon Voiron
action filter_type
action find
entity Tarragona
relation sister city
type type of french administrative division
['Tarragona', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?t WHERE { resource:Tarragona property:sister_city ?t . ?t rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15088
P137
Q483110
USER
Which stadium can be described as service operator of that administrative territory ?
(c(Q483110),P137,Q6548) (c(Q483110),P137,Q6397) (c(Q483110),P137,Q238205)
action filter_type
action find_reverse
entity Q15088
relation P137
type Q483110
[{'concept': 'Q483110'}, 'P137', 'Q6548'] [{'concept': 'Q483110'}, 'P137', 'Q6397'] [{'concept': 'Q483110'}, 'P137', 'Q238205']
SELECT DISTINCT ?z WHERE { ?z property:P137 resource:Q15088 . ?z rdf:type ontology:Q483110 }
Tarragona
action filter_type
action find_reverse
entity Tarragona
relation operator
type stadium
[{'concept': 'stadium'}, 'operator', 'Orléans'] [{'concept': 'stadium'}, 'operator', 'Avignon'] [{'concept': 'stadium'}, 'operator', 'Voiron']
SELECT DISTINCT ?z WHERE { ?z property:operator resource:Tarragona . ?z rdf:type ontology:stadium }
[]
stadium
Q1462770
SYSTEM
Nou Estadi de Tarragona
Q1462770
(c(Q483110),P137,Q6548) (c(Q483110),P137,Q6397) (c(Q483110),P137,Q238205)
action filter_type
action find_reverse
entity Q15088
relation P137
type Q483110
[ANSWER] can be described as service operator of that administrative territory
[{'concept': 'Q483110'}, 'P137', 'Q6548'] [{'concept': 'Q483110'}, 'P137', 'Q6397'] [{'concept': 'Q483110'}, 'P137', 'Q238205']
SELECT DISTINCT ?z WHERE { ?z property:P137 resource:Q15088 . ?z rdf:type ontology:Q483110 }
Nou Estadi de Tarragona
Nou Estadi de Tarragona can be described as service operator of that administrative territory
Nou Estadi de Tarragona
action filter_type
action find_reverse
entity Tarragona
relation operator
type stadium
[{'concept': 'stadium'}, 'operator', 'Orléans'] [{'concept': 'stadium'}, 'operator', 'Avignon'] [{'concept': 'stadium'}, 'operator', 'Voiron']
SELECT DISTINCT ?z WHERE { ?z property:operator resource:Tarragona . ?z rdf:type ontology:stadium }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q916
P495
Q15617994 Q2031291 Q201658
USER
How many administrative territories are the countries of origin of greater number of releases or film genres than Angola ?
(c(Q2031291)|c(Q201658),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q916
relation P495
type Q2031291
type Q201658
[[{'concept': 'Q2031291'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { ?m property:P495 resource:Q916 . { VALUES ( ?e ) { ( ontology:Q201658 ) ( ontology:Q2031291 ) } . ?m rdf:type ?e } } } . FILTER ( ?c > ?g ) . { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?c ) WHERE { ?i rdf:type ?s . VALUES ( ?s ) { ( ontology:Q2031291 ) ( ontology:Q201658 ) } } GROUP BY ?q } }
Angola
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action count
action filter_multi_types
action find_reverse
entity Angola
relation country of origin
type release
type film genre
[[{'concept': 'release'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { ?m property:country_of_origin resource:Angola . { VALUES ( ?e ) { ( ontology:film_genre ) ( ontology:release ) } . ?m rdf:type ?e } } } . FILTER ( ?c > ?g ) . { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?c ) WHERE { ?i rdf:type ?s . VALUES ( ?s ) { ( ontology:release ) ( ontology:film_genre ) } } GROUP BY ?q } }
[]
designation for an administrative territorial entity release film genre
SYSTEM
79
Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q712 Q717 Q837 Q252 Q399 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q794 Q884 Q826 Q822 Q241 Q242 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q983 Q233 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q1027 Q189 Q843 Q1029 Q1028 Q227 Q225 Q96 Q17 Q902 Q1036 Q974 Q1032 Q1033 Q191 Q965 Q298 Q115 Q117 Q212 Q213 Q215 Q218 Q219 Q970 Q79 Q77 Q878 Q948 Q1019 Q29 Q869
(c(Q2031291)|c(Q201658),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q916
relation P495
type Q2031291
type Q201658
[ANSWER]
[[{'concept': 'Q2031291'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { ?m property:P495 resource:Q916 . { VALUES ( ?e ) { ( ontology:Q201658 ) ( ontology:Q2031291 ) } . ?m rdf:type ?e } } } . FILTER ( ?c > ?g ) . { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?c ) WHERE { ?i rdf:type ?s . VALUES ( ?s ) { ( ontology:Q2031291 ) ( ontology:Q201658 ) } } GROUP BY ?q } }
Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Fiji Venezuela Nepal Indonesia Armenia South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iran South Korea Maldives Lebanon Cuba Belize Finland Luxembourg Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia Equatorial Guinea Malta Norway Somalia Sierra Leone Senegal Ireland Hungary Mauritius Iceland Pakistan Mozambique Morocco Azerbaijan Bosnia and Herzegovina Mexico Japan Bangladesh Uganda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Chile Ethiopia Ghana Ukraine Czech Republic Slovenia Romania Bulgaria Comoros Egypt Uruguay United Arab Emirates Tunisia Madagascar Spain Thailand
79
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action count
action filter_multi_types
action find_reverse
entity Angola
relation country of origin
type release
type film genre
[[{'concept': 'release'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { ?m property:country_of_origin resource:Angola . { VALUES ( ?e ) { ( ontology:film_genre ) ( ontology:release ) } . ?m rdf:type ?e } } } . FILTER ( ?c > ?g ) . { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?c ) WHERE { ?i rdf:type ?s . VALUES ( ?s ) { ( ontology:release ) ( ontology:film_genre ) } } GROUP BY ?q } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q29
P495
Q15617994 Q2031291 Q201658
USER
And how about Spain?
(c(Q2031291)|c(Q201658),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q29
relation P495
type Q2031291
type Q201658
[[{'concept': 'Q2031291'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) ?w WHERE { { ?i property:P495 ?w . ?w rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q2031291 } UNION { ?i property:P495 ?w . ?i rdf:type ontology:Q201658 . ?w rdf:type ontology:Q15617994 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d property:P495 resource:Q29 . { { ?d rdf:type ontology:Q201658 } UNION { ?d rdf:type ontology:Q2031291 } } } } . FILTER ( ?j > ?q ) }
Spain
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action count
action filter_multi_types
action find_reverse
entity Spain
relation country of origin
type release
type film genre
[[{'concept': 'release'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) ?w WHERE { { ?i property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:release } UNION { ?i property:country_of_origin ?w . ?i rdf:type ontology:film_genre . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d property:country_of_origin resource:Spain . { { ?d rdf:type ontology:film_genre } UNION { ?d rdf:type ontology:release } } } } . FILTER ( ?j > ?q ) }
[]
designation for an administrative territorial entity release film genre
SYSTEM
8
Q668 Q142 Q55 Q145 Q30 Q34 Q38 Q17
(c(Q2031291)|c(Q201658),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q29
relation P495
type Q2031291
type Q201658
[ANSWER]
[[{'concept': 'Q2031291'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) ?w WHERE { { ?i property:P495 ?w . ?w rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q2031291 } UNION { ?i property:P495 ?w . ?i rdf:type ontology:Q201658 . ?w rdf:type ontology:Q15617994 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d property:P495 resource:Q29 . { { ?d rdf:type ontology:Q201658 } UNION { ?d rdf:type ontology:Q2031291 } } } } . FILTER ( ?j > ?q ) }
India France Netherlands United Kingdom United States of America Sweden Italy Japan
8
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action count
action filter_multi_types
action find_reverse
entity Spain
relation country of origin
type release
type film genre
[[{'concept': 'release'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) ?w WHERE { { ?i property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:release } UNION { ?i property:country_of_origin ?w . ?i rdf:type ontology:film_genre . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d property:country_of_origin resource:Spain . { { ?d rdf:type ontology:film_genre } UNION { ?d rdf:type ontology:release } } } } . FILTER ( ?j > ?q ) }
[]