Simple Question (Direct)
Simple Question
Q5490036
P641
Q31629
USER
What did Frank Turner participate in ?
(Q5490036,P641,c(Q31629))
action filter_type
action find
entity Q5490036
relation P641
type Q31629
['Q5490036', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?a WHERE { resource:Q5490036 property:P641 ?a . ?a rdf:type ontology:Q31629 }
Frank Turner
action filter_type
action find
entity Frank Turner
relation sport
type type of sport
['Frank Turner', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?a WHERE { resource:Frank_Turner property:sport ?a . ?a rdf:type ontology:type_of_sport }
[]
type of sport
Q326827
SYSTEM
artistic gymnastics
Q326827
(Q5490036,P641,c(Q31629))
action filter_type
action find
entity Q5490036
relation P641
type Q31629
Frank Turner participated in [ANSWER]
['Q5490036', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?a WHERE { resource:Q5490036 property:P641 ?a . ?a rdf:type ontology:Q31629 }
artistic gymnastics
Frank Turner participated in artistic gymnastics
artistic gymnastics
action filter_type
action find
entity Frank Turner
relation sport
type type of sport
['Frank Turner', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?a WHERE { resource:Frank_Turner property:sport ?a . ?a rdf:type ontology:type_of_sport }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3553044 Q5490036
P27
Q15617994
USER
Which administrative territories are Frank Turner or Va'aiga Tuigamala a civilian of ?
OR((Q5490036,P27,c(Q15617994)), (Q3553044,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5490036
relation P27
action find
entity Q3553044
relation P27
type Q15617994
{'OR': [['Q5490036', 'P27', {'concept': 'Q15617994'}], ['Q3553044', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q5490036 property:P27 ?s } UNION { resource:Q3553044 property:P27 ?s } } . ?s rdf:type ontology:Q15617994 }
Va'aiga Tuigamala Frank Turner
action filter_type
action union
action find
entity Frank Turner
relation country of citizenship
action find
entity Va'aiga Tuigamala
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Frank Turner', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ["Va'aiga Tuigamala", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Frank_Turner property:country_of_citizenship ?s } UNION { resource:Va'aiga_Tuigamala property:country_of_citizenship ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q683 Q145
SYSTEM
Samoa, United Kingdom
Q683 Q145
OR((Q5490036,P27,c(Q15617994)), (Q3553044,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5490036
relation P27
action find
entity Q3553044
relation P27
type Q15617994
[ANSWERS] are Frank Turner or Va'aiga Tuigamala a civilian of
{'OR': [['Q5490036', 'P27', {'concept': 'Q15617994'}], ['Q3553044', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q5490036 property:P27 ?s } UNION { resource:Q3553044 property:P27 ?s } } . ?s rdf:type ontology:Q15617994 }
Samoa United Kingdom
Samoa and United Kingdom are Frank Turner or Va'aiga Tuigamala a civilian of
Samoa United Kingdom
action filter_type
action union
action find
entity Frank Turner
relation country of citizenship
action find
entity Va'aiga Tuigamala
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Frank Turner', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ["Va'aiga Tuigamala", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Frank_Turner property:country_of_citizenship ?s } UNION { resource:Va'aiga_Tuigamala property:country_of_citizenship ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q3553044
P54
Q12973014 Q874405
USER
How many sports teams and social groups have Va'aiga Tuigamala as their member ?
(Q3553044,P54,c(Q12973014)) (Q3553044,P54,c(Q874405))
action count
action union
action filter_type
action find
entity Q3553044
relation P54
type Q12973014
action filter_type
action find
entity Q3553044
relation P54
type Q874405
['Q3553044', 'P54', {'concept': 'Q12973014'}] ['Q3553044', 'P54', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { VALUES ( ?r ) { ( ontology:Q874405 ) ( ontology:Q12973014 ) } . ?g rdf:type ?r }
Va'aiga Tuigamala
action count
action union
action filter_type
action find
entity Va'aiga Tuigamala
relation member of sports team
type sports team
action filter_type
action find
entity Va'aiga Tuigamala
relation member of sports team
type social group
["Va'aiga Tuigamala", 'member of sports team', {'concept': 'sports team'}] ["Va'aiga Tuigamala", 'member of sports team', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { VALUES ( ?r ) { ( ontology:social_group ) ( ontology:sports_team ) } . ?g rdf:type ?r }
[]
sports team social group
SYSTEM
3 sports teams and 1 social groups
Q55801 Q1150127 Q910657 Q1210267
(Q3553044,P54,c(Q12973014)) (Q3553044,P54,c(Q874405))
action count
action union
action filter_type
action find
entity Q3553044
relation P54
type Q12973014
action filter_type
action find
entity Q3553044
relation P54
type Q874405
[ANSWER]
['Q3553044', 'P54', {'concept': 'Q12973014'}] ['Q3553044', 'P54', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { VALUES ( ?r ) { ( ontology:Q874405 ) ( ontology:Q12973014 ) } . ?g rdf:type ?r }
New Zealand national rugby union team Wasps RFC Newcastle Falcons Wigan Warriors
3 sports teams and 1 social groups
action count
action union
action filter_type
action find
entity Va'aiga Tuigamala
relation member of sports team
type sports team
action filter_type
action find
entity Va'aiga Tuigamala
relation member of sports team
type social group
["Va'aiga Tuigamala", 'member of sports team', {'concept': 'sports team'}] ["Va'aiga Tuigamala", 'member of sports team', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { VALUES ( ?r ) { ( ontology:social_group ) ( ontology:sports_team ) } . ?g rdf:type ?r }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q77
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with less number of administrative territories than Uruguay ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q77
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?d < ?z ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h rdf:type ontology:Q15617994 . resource:Q77 property:P530 ?h } } . { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?d ) WHERE { ?s property:P530 ?i . ?s rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?i } }
Uruguay
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Uruguay
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?d < ?z ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Uruguay property:diplomatic_relation ?h } } . { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?d ) WHERE { ?s property:diplomatic_relation ?i . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q218 Q20 Q948
SYSTEM
Romania, Norway, Tunisia
Q702 Q804 Q783 Q784 Q265 Q712 Q710 Q837 Q657 Q792 Q790 Q986 Q242 Q244 Q811 Q929 Q29999 Q854 Q819 Q424 Q730 Q1013 Q232 Q238 Q20 Q1045 Q1041 Q921 Q1027 Q1020 Q842 Q1028 Q786 Q1036 Q1037 Q1032 Q965 Q967 Q962 Q697 Q695 Q117 Q754 Q218 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q970 Q683 Q34020 Q686 Q836 Q574 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q77
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with less number of administrative territories than Uruguay
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?d < ?z ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h rdf:type ontology:Q15617994 . resource:Q77 property:P530 ?h } } . { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?d ) WHERE { ?s property:P530 ?i . ?s rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?i } }
Federated States of Micronesia Panama Honduras Dominica Uzbekistan Fiji Kiribati Nepal Chad El Salvador Haiti Eritrea Belize Barbados Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Kazakhstan San Marino Norway Somalia Senegal Brunei Mauritius Malawi Oman Morocco Dominican Republic Uganda Rwanda Niger Burkina Faso Burundi Benin Nauru Palau Ghana Trinidad and Tobago Romania Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Comoros Samoa Niue Vanuatu Myanmar East Timor Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia
Romania, Norway and Tunisia have diplomatic relationships with less number of administrative territories than Uruguay
Romania Norway Tunisia
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Uruguay
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?d < ?z ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Uruguay property:diplomatic_relation ?h } } . { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?d ) WHERE { ?s property:diplomatic_relation ?i . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q20
P1532
Q6979593
USER
Which national association football teams represent that administrative territory ?
(c(Q6979593),P1532,Q20)
action filter_type
action find_reverse
entity Q20
relation P1532
type Q6979593
[{'concept': 'Q6979593'}, 'P1532', 'Q20']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q6979593 . ?o property:P1532 resource:Q20 }
Norway
action filter_type
action find_reverse
entity Norway
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'Norway']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:national_association_football_team . ?o property:country_for_sport resource:Norway }
[]
national association football team
Clarification for simple ques.
Q218
SYSTEM
Did you mean Romania ?
Q218 Q20 Q948
(c(Q6979593),P1532,Q218) (c(Q6979593),P1532,Q20) (c(Q6979593),P1532,Q948)
[ANSWER]
[{'concept': 'Q6979593'}, 'P1532', 'Q218'] [{'concept': 'Q6979593'}, 'P1532', 'Q20'] [{'concept': 'Q6979593'}, 'P1532', 'Q948']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q6979593 . ?o property:P1532 resource:Q20 }
Romania Norway Tunisia
Did you mean Romania ?
Romania
[{'concept': 'national association football team'}, 'country for sport', 'Romania'] [{'concept': 'national association football team'}, 'country for sport', 'Norway'] [{'concept': 'national association football team'}, 'country for sport', 'Tunisia']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:national_association_football_team . ?o property:country_for_sport resource:Norway }
[]
Simple Question (Coreferenced)
USER
No, I meant Norway. Could you tell me the answer for that?
(c(Q6979593),P1532,Q20)
Q20
[{'concept': 'Q6979593'}, 'P1532', 'Q20']
[{'concept': 'national association football team'}, 'country for sport', 'Norway']
[]
Q3873978 Q751994
SYSTEM
Norway Olympic football team, Norway women's national football team
Q3873978 Q751994
(c(Q6979593),P1532,Q20)
action filter_type
action find_reverse
entity Q20
relation P1532
type Q6979593
And [ANSWERS] represent that administrative territory
[{'concept': 'Q6979593'}, 'P1532', 'Q20']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q6979593 . ?o property:P1532 resource:Q20 }
Norway Olympic football team Norway women's national football team
And Norway Olympic football team and Norway women's national football team represent that administrative territory
Norway Olympic football team Norway women's national football team
action filter_type
action find_reverse
entity Norway
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'Norway']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:national_association_football_team . ?o property:country_for_sport resource:Norway }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P1532
Q56061 Q15617994 Q6979593
USER
How many national association football teams represent lesser number of administrative territories and administrative territories than that national association football team ?
(c(Q6979593),P1532,c(Q56061)|c(Q15617994))
[{'concept': 'Q6979593'}, 'P1532', [{'concept': 'Q56061'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:P1532 ?y } UNION { ?z property:P1532 ?x } } . ?z rdf:type ontology:Q6979593 . ?y rdf:type ontology:Q56061 . ?x rdf:type ontology:Q15617994 }
[{'concept': 'national association football team'}, 'country for sport', [{'concept': 'administrative territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:country_for_sport ?y } UNION { ?z property:country_for_sport ?x } } . ?z rdf:type ontology:national_association_football_team . ?y rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
administrative territorial entity designation for an administrative territorial entity national association football team
Comparative|Count over More/Less|Mult. entity type|Clarification
Q751994
SYSTEM
Did you mean Norway women's national football team ?
(c(Q6979593),P1532,c(Q56061)|c(Q15617994))
[ANSWER]
[{'concept': 'Q6979593'}, 'P1532', [{'concept': 'Q56061'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:P1532 ?y } UNION { ?z property:P1532 ?x } } . ?z rdf:type ontology:Q6979593 . ?y rdf:type ontology:Q56061 . ?x rdf:type ontology:Q15617994 }
Did you mean Norway women's national football team ?
Norway women's national football team
[{'concept': 'national association football team'}, 'country for sport', [{'concept': 'administrative territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:country_for_sport ?y } UNION { ?z property:country_for_sport ?x } } . ?z rdf:type ontology:national_association_football_team . ?y rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Norway Olympic football team. Could you tell me the answer for that?
(c(Q6979593),P1532,c(Q56061)|c(Q15617994))
Q3873978
[{'concept': 'Q6979593'}, 'P1532', [{'concept': 'Q56061'}, {'concept': 'Q15617994'}]]
[{'concept': 'national association football team'}, 'country for sport', [{'concept': 'administrative territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
[]
SYSTEM
74
Q917512 Q16581708 Q3775351 Q3066716 Q7016339 Q20977930 Q154408 Q7525078 Q3277275 Q3277271 Q3277080 Q130702 Q3277476 Q3589693 Q2281868 Q1711488 Q3277279 Q23013935 Q3873975 Q7386165 Q3277295 Q1679841 Q4823750 Q7016343 Q2117869 Q4534645 Q6906601 Q2697050 Q931329 Q514498 Q4333840 Q23887368 Q3590230 Q3915806 Q303070 Q1712536 Q4763989 Q5201862 Q3873967 Q7267152 Q980162 Q871172 Q16154435 Q4993229 Q1037645 Q503755 Q510953 Q5378068 Q5378067 Q18127855 Q204204 Q3068773 Q4763990 Q15881781 Q5552186 Q16835367 Q3428572 Q3277264 Q499946 Q3277260 Q8060387 Q390326 Q782012 Q3277468 Q1659562 Q3277480 Q1202757 Q6722749 Q5501777 Q5029539 Q5029537 Q747967 Q640408 Q8066308
(c(Q6979593),P1532,c(Q56061)|c(Q15617994))
[ANSWER]
[{'concept': 'Q6979593'}, 'P1532', [{'concept': 'Q56061'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:P1532 ?y } UNION { ?z property:P1532 ?x } } . ?z rdf:type ontology:Q6979593 . ?y rdf:type ontology:Q56061 . ?x rdf:type ontology:Q15617994 }
Scotland women's national football team Denmark Olympic football team Martinique women's national football team Gabon women's national football team New Zealand women's national under-17 football team Catalonia women's national football team Germany women's national football team Sint Maarten women's national football team British Virgin Islands women's national football team Cayman Islands women's national football team Palestine women's national football team Hong Kong women's national football team Saint Kitts and Nevis women's national football team England women's national under-17 football team Aruba women's national football team Yugoslavia women's national football team Bermuda women's national football team Denmark women's national under-19 football team Australia Olympic football team Réunion women's national football team Antigua and Barbuda women's national football team Jamaica women's national football team Australia women's national under-20 football team New Zealand women's national under-20 football team Cook Islands women's national football team England national youth football team Montserrat women's national football team Netherlands Antilles women's national football team Solomon Islands women's national football team Denmark women's national football team Soviet Union Olympic football team Gabon Olympic football team Guadeloupe women's national football team Aruba Olympic football team Austria women's national football team Tahiti women's national football team Anguilla women's national under-20 football team Czechoslovakia Olympic football team Canada Olympic soccer team Qatar women's national football team Wales women's national football team Czechoslovakia women's national football team Australia women's national under-17 association football team Curaçao women's national football team Netherlands Antilles national football team New Zealand women's national football team New Zealand Olympic football team England women's national under-23 football team England women's national under-19 football team Scotland women's under-23 national football team England women's national football team East Germany women's national football team Anguilla women's national under-17 football team Scotland women's national under-17 football team Germany women's national youth football team England women's national under-20 football team Anguilla women's national football team Bahamas women's national football team Canada women's national soccer team Grenada women's national football team Yugoslavia Olympic football team East Germany Olympic football team Australia women's national association football team Saint Vincent and the Grenadines women's national football team Papua New Guinea women's national football team Turks and Caicos Islands women's national football team Germany Olympic football team Macau women's national football team French Guiana women's national football team Canada women's national under-20 soccer team Canada women's national under-17 soccer team Soviet Union women's national football team Chinese Taipei women's national football team Zanzibar women's national football team
74
[{'concept': 'national association football team'}, 'country for sport', [{'concept': 'administrative territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:country_for_sport ?y } UNION { ?z property:country_for_sport ?x } } . ?z rdf:type ontology:national_association_football_team . ?y rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3873978
P1532
Q15617994
USER
Which administrative territory did Norway Olympic football team play for ?
(Q3873978,P1532,c(Q15617994))
action filter_type
action find
entity Q3873978
relation P1532
type Q15617994
['Q3873978', 'P1532', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q3873978 property:P1532 ?u }
Norway Olympic football team
action filter_type
action find
entity Norway Olympic football team
relation country for sport
type designation for an administrative territorial entity
['Norway Olympic football team', 'country for sport', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Norway_Olympic_football_team property:country_for_sport ?u }
[]
designation for an administrative territorial entity
Q20
SYSTEM
Norway
Q20
(Q3873978,P1532,c(Q15617994))
action filter_type
action find
entity Q3873978
relation P1532
type Q15617994
[ANSWER] Olympic football team played in [ANSWER]
['Q3873978', 'P1532', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q3873978 property:P1532 ?u }
Norway
Norway Olympic football team played in Norway
Norway
action filter_type
action find
entity Norway Olympic football team
relation country for sport
type designation for an administrative territorial entity
['Norway Olympic football team', 'country for sport', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Norway_Olympic_football_team property:country_for_sport ?u }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P840
Q15617994 Q15416 Q838948
USER
Which administrative territories are min number of television programs and works of art set in ?
(c(Q15416)|c(Q838948),P840,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?i ) { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?d ) WHERE { ?z rdf:type ?o . VALUES ( ?o ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } } GROUP BY ?a } } . { SELECT DISTINCT ?x ( COUNT ( ?g ) AS ?p ) WHERE { { ?g property:P840 ?x . ?g rdf:type ontology:Q15416 . ?x rdf:type ontology:Q15617994 } UNION { ?g property:P840 ?x . ?g rdf:type ontology:Q838948 . ?x rdf:type ontology:Q15617994 } } GROUP BY ?x } . FILTER ( ?p = ?i ) }
action argmin
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?i ) { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?d ) WHERE { ?z rdf:type ?o . VALUES ( ?o ) { ( ontology:television_program ) ( ontology:work_of_art ) } } GROUP BY ?a } } . { SELECT DISTINCT ?x ( COUNT ( ?g ) AS ?p ) WHERE { { ?g property:narrative_location ?x . ?g rdf:type ontology:television_program . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?g property:narrative_location ?x . ?g rdf:type ontology:work_of_art . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?x } . FILTER ( ?p = ?i ) }
[]
designation for an administrative territorial entity television program work of art
Q230 Q32 Q1011
SYSTEM
Georgia, Luxembourg, Cape Verde
Q805 Q20837 Q265 Q18021 Q712 Q711 Q252 Q1460 Q399 Q403 Q1979 Q858 Q165040 Q490398 Q12515 Q32 Q928 Q424 Q733 Q854 Q819 Q340628 Q769680 Q230 Q12538 Q233 Q1045 Q1044 Q1860611 Q1027 Q2009 Q2007 Q1029 Q511806 Q225 Q223 Q12700 Q3207 Q159689 Q114 Q219 Q20571 Q1210 Q1005 Q833 Q683 Q874 Q948 Q817 Q1016 Q1011 Q678 Q12545 Q53216
(c(Q15416)|c(Q838948),P840,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
[ANSWERS] are min number of television programs and works of art set in
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?i ) { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?d ) WHERE { ?z rdf:type ?o . VALUES ( ?o ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } } GROUP BY ?a } } . { SELECT DISTINCT ?x ( COUNT ( ?g ) AS ?p ) WHERE { { ?g property:P840 ?x . ?g rdf:type ontology:Q15416 . ?x rdf:type ontology:Q15617994 } UNION { ?g property:P840 ?x . ?g rdf:type ontology:Q838948 . ?x rdf:type ontology:Q15617994 } } GROUP BY ?x } . FILTER ( ?p = ?i ) }
Yemen Fanø Uzbekistan Biella Fiji Mongolia Indonesia Sicily Armenia Serbia Prince Edward Island Syria Duchy of Parma Peenemünde Gard Luxembourg Philippines Cambodia Paraguay Sri Lanka Laos Aggius Bornholm Georgia Haute-Garonne Malta Somalia Sierra Leone Viby Mauritius Yukon Northwest Territories Mozambique North Slope Borough Bosnia and Herzegovina Greenland Hautes-Pyrénées Aude Bomarzo Kenya Bulgaria Spoleto Lombardy Gambia Malaysia Samoa Turkmenistan Tunisia Kuwait Libya Cape Verde Tonga Hérault Aquileia
Georgia, Luxembourg and Cape Verde are min number of television programs and works of art set in
Georgia Luxembourg Cape Verde
action argmin
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?i ) { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?d ) WHERE { ?z rdf:type ?o . VALUES ( ?o ) { ( ontology:television_program ) ( ontology:work_of_art ) } } GROUP BY ?a } } . { SELECT DISTINCT ?x ( COUNT ( ?g ) AS ?p ) WHERE { { ?g property:narrative_location ?x . ?g rdf:type ontology:television_program . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?g property:narrative_location ?x . ?g rdf:type ontology:work_of_art . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?x } . FILTER ( ?p = ?i ) }
[]