Simple Question (Direct)
Simple Question
Q20631311
P102
Q7210356
USER
Which party does Anne Aly belong to ?
(Q20631311,P102,c(Q7210356))
action filter_type
action find
entity Q20631311
relation P102
type Q7210356
['Q20631311', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q20631311 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
Anne Aly
action filter_type
action find
entity Anne Aly
relation member of political party
type political organization
['Anne Aly', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:Anne_Aly property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
political organization
Q216082
SYSTEM
Australian Labor Party
Q216082
(Q20631311,P102,c(Q7210356))
action filter_type
action find
entity Q20631311
relation P102
type Q7210356
Anne Aly belongs to [ANSWER]
['Q20631311', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q20631311 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
Australian Labor Party
Anne Aly belongs to Australian Labor Party
Australian Labor Party
action filter_type
action find
entity Anne Aly
relation member of political party
type political organization
['Anne Aly', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:Anne_Aly property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q20631311
P39
Q12737077
USER
What was the position held by that person ?
(Q216082,P39,c(Q12737077))
action filter_type
action find
entity Q20631311
relation P39
type Q12737077
['Q216082', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q12737077 . resource:Q20631311 property:P39 ?t }
Anne Aly
action filter_type
action find
entity Anne Aly
relation position held
type occupation
['Australian Labor Party', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:occupation . resource:Anne_Aly property:position_held ?t }
[]
occupation
Q18912794
SYSTEM
Member of the Australian House of Representatives
Q18912794
(Q216082,P39,c(Q12737077))
action filter_type
action find
entity Q20631311
relation P39
type Q12737077
The position held by that person was a [ANSWER]
['Q216082', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q12737077 . resource:Q20631311 property:P39 ?t }
Member of the Australian House of Representatives
The position held by that person was a Member of the Australian House of Representatives
Member of the Australian House of Representatives
action filter_type
action find
entity Anne Aly
relation position held
type occupation
['Australian Labor Party', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:occupation . resource:Anne_Aly property:position_held ?t }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q26694457
P1001
Q1048835
USER
Which political territory belongs to jurisdiction of mayor of Villanueva de Algaidas ?
(Q26694457,P1001,c(Q1048835))
action filter_type
action find
entity Q26694457
relation P1001
type Q1048835
['Q26694457', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q26694457 property:P1001 ?l . ?l rdf:type ontology:Q1048835 }
mayor of Villanueva de Algaidas
action filter_type
action find
entity mayor of Villanueva de Algaidas
relation applies to jurisdiction
type political territorial entity
['mayor of Villanueva de Algaidas', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:mayor_of_Villanueva_de_Algaidas property:applies_to_jurisdiction ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1647726
SYSTEM
Villanueva de Algaidas
Q1647726
(Q26694457,P1001,c(Q1048835))
action filter_type
action find
entity Q26694457
relation P1001
type Q1048835
[ANSWER] belongs to jurisdiction of mayor of [ANSWER]
['Q26694457', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q26694457 property:P1001 ?l . ?l rdf:type ontology:Q1048835 }
Villanueva de Algaidas
Villanueva de Algaidas belongs to jurisdiction of mayor of Villanueva de Algaidas
Villanueva de Algaidas
action filter_type
action find
entity mayor of Villanueva de Algaidas
relation applies to jurisdiction
type political territorial entity
['mayor of Villanueva de Algaidas', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:mayor_of_Villanueva_de_Algaidas property:applies_to_jurisdiction ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1647726
P47
Q1048835
USER
Which political territories do that one share a border with ?
(c(Q1048835),P47,Q1647726)
action filter_type
action find_reverse
entity Q1647726
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q1647726']
SELECT DISTINCT ?l WHERE { ?l property:P47 resource:Q1647726 . ?l rdf:type ontology:Q1048835 }
Villanueva de Algaidas
action filter_type
action find_reverse
entity Villanueva de Algaidas
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Villanueva de Algaidas']
SELECT DISTINCT ?l WHERE { ?l property:shares_border_with resource:Villanueva_de_Algaidas . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q904793 Q920126 Q1647751
SYSTEM
Iznájar, Archidona, Cuevas de San Marcos
Q949909 Q1647751 Q904793 Q920126
(c(Q1048835),P47,Q1647726)
action filter_type
action find_reverse
entity Q1647726
relation P47
type Q1048835
[ANSWERS] that one share a border with
[{'concept': 'Q1048835'}, 'P47', 'Q1647726']
SELECT DISTINCT ?l WHERE { ?l property:P47 resource:Q1647726 . ?l rdf:type ontology:Q1048835 }
Villanueva de Tapia Cuevas de San Marcos Iznájar Archidona
Iznájar, Archidona and Cuevas de San Marcos that one share a border with
Iznájar Archidona Cuevas de San Marcos
action filter_type
action find_reverse
entity Villanueva de Algaidas
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Villanueva de Algaidas']
SELECT DISTINCT ?l WHERE { ?l property:shares_border_with resource:Villanueva_de_Algaidas . ?l rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P127
Q1048835 Q4830453 Q811979
USER
How many political territories own atmost 3 business enterprises or architectural structures ?
(c(Q4830453)|c(Q811979),P127,c(Q1048835))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q4830453
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q811979
value 3
[[{'concept': 'Q4830453'}, {'concept': 'Q811979'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?b WHERE { VALUES ( ?g ) { ( ontology:Q4830453 ) ( ontology:Q811979 ) } . ?o rdf:type ?g } GROUP BY ?b } . FILTER ( ?f <= 3 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type business enterprise
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type architectural structure
value 3
[[{'concept': 'business enterprise'}, {'concept': 'architectural structure'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?b WHERE { VALUES ( ?g ) { ( ontology:business_enterprise ) ( ontology:architectural_structure ) } . ?o rdf:type ?g } GROUP BY ?b } . FILTER ( ?f <= 3 ) }
[]
political territorial entity business enterprise architectural structure
SYSTEM
67
Q192536 Q170322 Q1648590 Q318314 Q3741 Q20937 Q2321093 Q5691 Q188399 Q490638 Q6040 Q126514 Q211091 Q6053 Q192387 Q133083 Q217838 Q74881 Q8543 Q6041 Q2379199 Q6139 Q8178 Q6339 Q7379734 Q1823 Q8551 Q13786 Q5783 Q741765 Q193317 Q35 Q191091 Q2947 Q13862 Q276176 Q1135166 Q46070 Q211106 Q202174 Q54902 Q192697 Q188373 Q190930 Q192702 Q2175 Q849584 Q2271 Q6142 Q909707 Q234 Q100166 Q17557 Q231 Q40 Q9331 Q6047 Q6045 Q9337 Q8182 Q23635 Q408 Q193307 Q207111 Q16 Q206926 Q5756
(c(Q4830453)|c(Q811979),P127,c(Q1048835))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q4830453
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q811979
value 3
[ANSWER]
[[{'concept': 'Q4830453'}, {'concept': 'Q811979'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?b WHERE { VALUES ( ?g ) { ( ontology:Q4830453 ) ( ontology:Q811979 ) } . ?o rdf:type ?g } GROUP BY ?b } . FILTER ( ?f <= 3 ) }
Zlín Region Qingdao Manises Ipatinga Special Region of Yogyakarta Gyeonggi Province Chorrillos South Karelia Central Bohemian Region Almendralejo Goslar Dumfries and Galloway Renfrewshire Gifhorn Londrina Gauteng Stirling Dalian Germersheim Wolfenbüttel politics of Edinburgh Havelland Karlsruhe Erzgebirgskreis Aachen Aceh Südliche Weinstraße Cebu Andalusia San Fernando Pardubice Region Denmark Karlovy Vary Region Dithmarschen Negros Occidental Volta Redonda Greater London Authority Plzeň Region Moray Argyll and Bute Fuenlabrada South Moravian Region South Bohemia Region Vysočina Region Ústí nad Labem Region Riau Province Jaraguá do Sul South Sumatra Potsdam-Mittelmark Sestao Flemish Region Orkney Islands California Republic Walloon Region Austria Flemish Community Helmstedt Peine Flemish Region Rastatt Bermuda Australia Olomouc Region North Lanarkshire Canada North Ayrshire Community of Madrid
67
action count
action atmost
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type business enterprise
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type architectural structure
value 3
[[{'concept': 'business enterprise'}, {'concept': 'architectural structure'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?b WHERE { VALUES ( ?g ) { ( ontology:business_enterprise ) ( ontology:architectural_structure ) } . ?o rdf:type ?g } GROUP BY ?b } . FILTER ( ?f <= 3 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18912794
P361
Q2145277
USER
What is Member of the Australian House of Representatives a part of ?
(Q18912794,P361,c(Q2145277))
action filter_type
action find
entity Q18912794
relation P361
type Q2145277
['Q18912794', 'P361', {'concept': 'Q2145277'}]
SELECT DISTINCT ?q WHERE { resource:Q18912794 property:P361 ?q . ?q rdf:type ontology:Q2145277 }
Member of the Australian House of Representatives
action filter_type
action find
entity Member of the Australian House of Representatives
relation part of
type House of Representatives
['Member of the Australian House of Representatives', 'part of', {'concept': 'House of Representatives'}]
SELECT DISTINCT ?q WHERE { resource:Member_of_the_Australian_House_of_Representatives property:part_of ?q . ?q rdf:type ontology:House_of_Representatives }
[]
House of Representatives
Q783401
SYSTEM
House of Representatives
Q783401
(Q18912794,P361,c(Q2145277))
action filter_type
action find
entity Q18912794
relation P361
type Q2145277
Member of the Australian [ANSWER] a part of is the [ANSWER]
['Q18912794', 'P361', {'concept': 'Q2145277'}]
SELECT DISTINCT ?q WHERE { resource:Q18912794 property:P361 ?q . ?q rdf:type ontology:Q2145277 }
House of Representatives
Member of the Australian House of Representatives a part of is the House of Representatives
House of Representatives
action filter_type
action find
entity Member of the Australian House of Representatives
relation part of
type House of Representatives
['Member of the Australian House of Representatives', 'part of', {'concept': 'House of Representatives'}]
SELECT DISTINCT ?q WHERE { resource:Member_of_the_Australian_House_of_Representatives property:part_of ?q . ?q rdf:type ontology:House_of_Representatives }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21858388 Q20631311
P27
Q1048835
USER
Which political territories are Anne Aly or Peter Pulu a civilian of ?
OR((Q20631311,P27,c(Q1048835)), (Q21858388,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q20631311
relation P27
action find
entity Q21858388
relation P27
type Q1048835
{'OR': [['Q20631311', 'P27', {'concept': 'Q1048835'}], ['Q21858388', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?w ) { ( resource:Q20631311 ) ( resource:Q21858388 ) } . ?w property:P27 ?u } . ?u rdf:type ontology:Q1048835 }
Peter Pulu Anne Aly
action filter_type
action union
action find
entity Anne Aly
relation country of citizenship
action find
entity Peter Pulu
relation country of citizenship
type political territorial entity
{'OR': [['Anne Aly', 'country of citizenship', {'concept': 'political territorial entity'}], ['Peter Pulu', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?w ) { ( resource:Anne_Aly ) ( resource:Peter_Pulu ) } . ?w property:country_of_citizenship ?u } . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q691
SYSTEM
Australia, Papua New Guinea
Q408 Q691
OR((Q20631311,P27,c(Q1048835)), (Q21858388,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q20631311
relation P27
action find
entity Q21858388
relation P27
type Q1048835
[ANSWERS] are Anne Aly or Peter Pulu a civilian of
{'OR': [['Q20631311', 'P27', {'concept': 'Q1048835'}], ['Q21858388', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?w ) { ( resource:Q20631311 ) ( resource:Q21858388 ) } . ?w property:P27 ?u } . ?u rdf:type ontology:Q1048835 }
Australia Papua New Guinea
Australia and Papua New Guinea are Anne Aly or Peter Pulu a civilian of
Australia Papua New Guinea
action filter_type
action union
action find
entity Anne Aly
relation country of citizenship
action find
entity Peter Pulu
relation country of citizenship
type political territorial entity
{'OR': [['Anne Aly', 'country of citizenship', {'concept': 'political territorial entity'}], ['Peter Pulu', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?w ) { ( resource:Anne_Aly ) ( resource:Peter_Pulu ) } . ?w property:country_of_citizenship ?u } . ?u rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q193619
P85
Q484692 Q7725634 Q1048835
USER
How many political territories have around the same number of hymns and literary works as their anthem as Union of South Africa ?
(c(Q1048835),P85,c(Q484692)|c(Q7725634))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action count
action filter_multi_types
action find
entity Q193619
relation P85
type Q484692
type Q7725634
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { resource:Q193619 property:P85 ?z . { { ?z rdf:type ontology:Q484692 } UNION { ?z rdf:type ontology:Q7725634 } } } } . FILTER ( ?w = ?x ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?i WHERE { ?g rdf:type ?l . VALUES ( ?l ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } GROUP BY ?i } }
Union of South Africa
action count
action approx
action union
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action count
action filter_multi_types
action find
entity Union of South Africa
relation anthem
type hymn
type literary work
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { resource:Union_of_South_Africa property:anthem ?z . { { ?z rdf:type ontology:hymn } UNION { ?z rdf:type ontology:literary_work } } } } . FILTER ( ?w = ?x ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?i WHERE { ?g rdf:type ?l . VALUES ( ?l ) { ( ontology:hymn ) ( ontology:literary_work ) } } GROUP BY ?i } }
[]
hymn literary work political territorial entity
SYSTEM
37
Q1000 Q183 Q785 Q601252 Q193619 Q685 Q202023 Q763 Q664 Q9676 Q1054923 Q13353 Q5705 Q16 Q170604 Q5785 Q38610 Q3405693 Q18221 Q43448 Q778 Q5783 Q691 Q757 Q9648 Q234 Q35672 Q165783 Q40 Q35086 Q23635 Q192184 Q25228 Q31747 Q25305 Q129286 Q2594990
(c(Q1048835),P85,c(Q484692)|c(Q7725634))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action count
action filter_multi_types
action find
entity Q193619
relation P85
type Q484692
type Q7725634
[ANSWER]
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { resource:Q193619 property:P85 ?z . { { ?z rdf:type ontology:Q484692 } UNION { ?z rdf:type ontology:Q7725634 } } } } . FILTER ( ?w = ?x ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?i WHERE { ?g rdf:type ?l . VALUES ( ?l ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } GROUP BY ?i } }
Gabon Germany Jersey Banovina of Croatia Union of South Africa Solomon Islands Herm Saint Kitts and Nevis New Zealand Isle of Man British Hong Kong Montserrat Catalonia Canada New France Cayman Islands Dominion of Newfoundland Sark Turks and Caicos Islands British Indian Ocean Territory The Bahamas Andalusia Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Flemish Region Pitcairn Islands British Antarctic Territory Austria South Georgia and the South Sandwich Islands Bermuda Saint Helena, Ascension and Tristan da Cunha Anguilla Irish Free State British Virgin Islands British Raj Dominion of New Zealand
37
action count
action approx
action union
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action count
action filter_multi_types
action find
entity Union of South Africa
relation anthem
type hymn
type literary work
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { resource:Union_of_South_Africa property:anthem ?z . { { ?z rdf:type ontology:hymn } UNION { ?z rdf:type ontology:literary_work } } } } . FILTER ( ?w = ?x ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?i WHERE { ?g rdf:type ?l . VALUES ( ?l ) { ( ontology:hymn ) ( ontology:literary_work ) } } GROUP BY ?i } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q685
P85
Q484692 Q7725634 Q1048835
USER
And how about Solomon Islands?
(c(Q1048835),P85,c(Q484692)|c(Q7725634))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action count
action filter_multi_types
action find
entity Q685
relation P85
type Q484692
type Q7725634
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { resource:Q685 property:P85 ?f . { VALUES ( ?c ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } . ?f rdf:type ?c } } } . FILTER ( ?q = ?v ) . { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?q ) WHERE { { ?a rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q484692 . ?a property:P85 ?k } UNION { ?a rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q7725634 . ?a property:P85 ?k } } GROUP BY ?a } }
Solomon Islands
action count
action approx
action union
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action count
action filter_multi_types
action find
entity Solomon Islands
relation anthem
type hymn
type literary work
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { resource:Solomon_Islands property:anthem ?f . { VALUES ( ?c ) { ( ontology:hymn ) ( ontology:literary_work ) } . ?f rdf:type ?c } } } . FILTER ( ?q = ?v ) . { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?q ) WHERE { { ?a rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:hymn . ?a property:anthem ?k } UNION { ?a rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:literary_work . ?a property:anthem ?k } } GROUP BY ?a } }
[]
hymn literary work political territorial entity
SYSTEM
37
Q1000 Q183 Q785 Q601252 Q193619 Q685 Q202023 Q763 Q664 Q9676 Q1054923 Q13353 Q5705 Q16 Q170604 Q5785 Q38610 Q3405693 Q18221 Q43448 Q778 Q5783 Q691 Q757 Q9648 Q234 Q35672 Q165783 Q40 Q35086 Q23635 Q192184 Q25228 Q31747 Q25305 Q129286 Q2594990
(c(Q1048835),P85,c(Q484692)|c(Q7725634))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action count
action filter_multi_types
action find
entity Q685
relation P85
type Q484692
type Q7725634
[ANSWER]
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { resource:Q685 property:P85 ?f . { VALUES ( ?c ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } . ?f rdf:type ?c } } } . FILTER ( ?q = ?v ) . { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?q ) WHERE { { ?a rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q484692 . ?a property:P85 ?k } UNION { ?a rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q7725634 . ?a property:P85 ?k } } GROUP BY ?a } }
Gabon Germany Jersey Banovina of Croatia Union of South Africa Solomon Islands Herm Saint Kitts and Nevis New Zealand Isle of Man British Hong Kong Montserrat Catalonia Canada New France Cayman Islands Dominion of Newfoundland Sark Turks and Caicos Islands British Indian Ocean Territory The Bahamas Andalusia Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Flemish Region Pitcairn Islands British Antarctic Territory Austria South Georgia and the South Sandwich Islands Bermuda Saint Helena, Ascension and Tristan da Cunha Anguilla Irish Free State British Virgin Islands British Raj Dominion of New Zealand
37
action count
action approx
action union
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action count
action filter_multi_types
action find
entity Solomon Islands
relation anthem
type hymn
type literary work
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { resource:Solomon_Islands property:anthem ?f . { VALUES ( ?c ) { ( ontology:hymn ) ( ontology:literary_work ) } . ?f rdf:type ?c } } } . FILTER ( ?q = ?v ) . { SELECT DISTINCT ?a ( COUNT ( ?k ) AS ?q ) WHERE { { ?a rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:hymn . ?a property:anthem ?k } UNION { ?a rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:literary_work . ?a property:anthem ?k } } GROUP BY ?a } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2947
P138
Q1496967
USER
Which territory is Dithmarschen named after ?
(Q2947,P138,c(Q1496967))
action filter_type
action find
entity Q2947
relation P138
type Q1496967
['Q2947', 'P138', {'concept': 'Q1496967'}]
SELECT DISTINCT ?a WHERE { resource:Q2947 property:P138 ?a . ?a rdf:type ontology:Q1496967 }
Dithmarschen
action filter_type
action find
entity Dithmarschen
relation named after
type territorial entity
['Dithmarschen', 'named after', {'concept': 'territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Dithmarschen property:named_after ?a . ?a rdf:type ontology:territorial_entity }
[]
territorial entity
Q149861
SYSTEM
Dithmarschen
Q149861
(Q2947,P138,c(Q1496967))
action filter_type
action find
entity Q2947
relation P138
type Q1496967
[ANSWER] is named for [ANSWER]
['Q2947', 'P138', {'concept': 'Q1496967'}]
SELECT DISTINCT ?a WHERE { resource:Q2947 property:P138 ?a . ?a rdf:type ontology:Q1496967 }
Dithmarschen
Dithmarschen is named for Dithmarschen
Dithmarschen
action filter_type
action find
entity Dithmarschen
relation named after
type territorial entity
['Dithmarschen', 'named after', {'concept': 'territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Dithmarschen property:named_after ?a . ?a rdf:type ontology:territorial_entity }
[]