Simple Question (Direct)
Simple Question
Q16731767
P39
Q12737077
USER
What was the position for which Stefanie Mach was appointed ?
(Q16731767,P39,c(Q12737077))
action filter_type
action find
entity Q16731767
relation P39
type Q12737077
['Q16731767', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q16731767 property:P39 ?s . ?s rdf:type ontology:Q12737077 }
Stefanie Mach
action filter_type
action find
entity Stefanie Mach
relation position held
type occupation
['Stefanie Mach', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Stefanie_Mach property:position_held ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q17486298
SYSTEM
Member of the Arizona House of Representatives
Q17486298
(Q16731767,P39,c(Q12737077))
action filter_type
action find
entity Q16731767
relation P39
type Q12737077
[ANSWER]
['Q16731767', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q16731767 property:P39 ?s . ?s rdf:type ontology:Q12737077 }
Member of the Arizona House of Representatives
Member of the Arizona House of Representatives
Member of the Arizona House of Representatives
action filter_type
action find
entity Stefanie Mach
relation position held
type occupation
['Stefanie Mach', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Stefanie_Mach property:position_held ?s . ?s rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17486298
P361
Q18608569
USER
What is that occupation a part of ?
(Q17486298,P361,c(Q18608569))
action filter_type
action find
entity Q17486298
relation P361
type Q18608569
['Q17486298', 'P361', {'concept': 'Q18608569'}]
SELECT DISTINCT ?d WHERE { resource:Q17486298 property:P361 ?d . ?d rdf:type ontology:Q18608569 }
Member of the Arizona House of Representatives
action filter_type
action find
entity Member of the Arizona House of Representatives
relation part of
type lower house of U.S. state legislature
['Member of the Arizona House of Representatives', 'part of', {'concept': 'lower house of U.S. state legislature'}]
SELECT DISTINCT ?d WHERE { resource:Member_of_the_Arizona_House_of_Representatives property:part_of ?d . ?d rdf:type ontology:lower_house_of_U.S._state_legislature }
[]
lower house of U.S. state legislature
Q1444543
SYSTEM
Arizona House of Representatives
Q1444543
(Q17486298,P361,c(Q18608569))
action filter_type
action find
entity Q17486298
relation P361
type Q18608569
That occupation a part of is the [ANSWER]
['Q17486298', 'P361', {'concept': 'Q18608569'}]
SELECT DISTINCT ?d WHERE { resource:Q17486298 property:P361 ?d . ?d rdf:type ontology:Q18608569 }
Arizona House of Representatives
That occupation a part of is the Arizona House of Representatives
Arizona House of Representatives
action filter_type
action find
entity Member of the Arizona House of Representatives
relation part of
type lower house of U.S. state legislature
['Member of the Arizona House of Representatives', 'part of', {'concept': 'lower house of U.S. state legislature'}]
SELECT DISTINCT ?d WHERE { resource:Member_of_the_Arizona_House_of_Representatives property:part_of ?d . ?d rdf:type ontology:lower_house_of_U.S._state_legislature }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1444543
P108
Q502895
USER
Which people have that lower house of U.S. state legislature as their employer ?
(c(Q502895),P108,Q1444543)
action filter_type
action find_reverse
entity Q1444543
relation P108
type Q502895
[{'concept': 'Q502895'}, 'P108', 'Q1444543']
SELECT DISTINCT ?v WHERE { ?v property:P108 resource:Q1444543 . ?v rdf:type ontology:Q502895 }
Arizona House of Representatives
action filter_type
action find_reverse
entity Arizona House of Representatives
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Arizona House of Representatives']
SELECT DISTINCT ?v WHERE { ?v property:employer resource:Arizona_House_of_Representatives . ?v rdf:type ontology:common_name }
[]
common name
Q5300372 Q16105836 Q4678986
SYSTEM
Doug Coleman, Lela Alston, Adam Driggs
Q16123081 Q16733914 Q15616100 Q6369626 Q15526816 Q4710395 Q16200732 Q16734520 Q23017982 Q5334487 Q16731246 Q5300372 Q20090380 Q16885874 Q16734430 Q7613407 Q16224458 Q16204595 Q16241820 Q16201861 Q16729790 Q16201642 Q16224676 Q15615850 Q15526804 Q16198072 Q16214361 Q15616057 Q16105836 Q4739545 Q7670522 Q15526745 Q5247966 Q15526725 Q15615754 Q16886121 Q15616150 Q15526700 Q14918304 Q17092108 Q1738585 Q4678986 Q16734452 Q16207044 Q16202901 Q16732656 Q16106051 Q15615882 Q15526884 Q16092835 Q22679070 Q16240942 Q7436071 Q23015903 Q16199304 Q16221169 Q16875256 Q15526855 Q16727437 Q16122988 Q19866055
(c(Q502895),P108,Q1444543)
action filter_type
action find_reverse
entity Q1444543
relation P108
type Q502895
[ANSWERS] have that lower house of U.S. state legislature as their employer
[{'concept': 'Q502895'}, 'P108', 'Q1444543']
SELECT DISTINCT ?v WHERE { ?v property:P108 resource:Q1444543 . ?v rdf:type ontology:Q502895 }
Bruce Wheeler Lisa Otondo Justin Olson Karen Fann Phil Lovas Albert Hale Kate Brophy McGee Justin Pierce Norma Muñoz Ed Ableser Jonathan Larkin Doug Coleman Noel W. Campbell David Stevens Jamescita Peshlakai Steve Montenegro David Gowan Demion Clinco Rosanna Gabaldón Mark Cardenas Lydia Hernandez Kelly Townsend Gail Griffin Thomas Forese David Livingston Nancy Barto Chad Campbell J. D. Mesnard Lela Alston Amanda Aguirre TJ Shope Andrea Dalessandro Debbie McCune Davis Paul Boyer Eddie Farnsworth Bob Thorpe Bob Robson Sonny Borrelli Adam Kwasman Victoria Steele Ken Cheuvront Adam Driggs Warren Petersen Carl Seel Heather Carter Eric Meyer Frank Pratt Sally Ann Gonzales Ethan Orr Carl Kunasek Charlene Fernandez Olivia Cajero Bedford Scott Bundgaard Regina Cobb Andy Biggs Andrew Sherwood Macario Saldate Darin Mitchell Keith Bee Michelle Ugenti Randall Friese
Doug Coleman, Lela Alston and Adam Driggs have that lower house of U.S. state legislature as their employer
Doug Coleman Lela Alston Adam Driggs
action filter_type
action find_reverse
entity Arizona House of Representatives
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Arizona House of Representatives']
SELECT DISTINCT ?v WHERE { ?v property:employer resource:Arizona_House_of_Representatives . ?v rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1444543
P1001
Q852446
USER
Which US administrative territory belongs to jurisdiction of Arizona House of Representatives ?
(Q1444543,P1001,c(Q852446))
action filter_type
action find
entity Q1444543
relation P1001
type Q852446
['Q1444543', 'P1001', {'concept': 'Q852446'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q852446 . resource:Q1444543 property:P1001 ?h }
Arizona House of Representatives
action filter_type
action find
entity Arizona House of Representatives
relation applies to jurisdiction
type administrative territorial entity of the United States
['Arizona House of Representatives', 'applies to jurisdiction', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity_of_the_United_States . resource:Arizona_House_of_Representatives property:applies_to_jurisdiction ?h }
[]
administrative territorial entity of the United States
Q816
SYSTEM
Arizona
Q816
(Q1444543,P1001,c(Q852446))
action filter_type
action find
entity Q1444543
relation P1001
type Q852446
[ANSWER] belongs to jurisdiction of [ANSWER] House of Representatives
['Q1444543', 'P1001', {'concept': 'Q852446'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q852446 . resource:Q1444543 property:P1001 ?h }
Arizona
Arizona belongs to jurisdiction of Arizona House of Representatives
Arizona
action filter_type
action find
entity Arizona House of Representatives
relation applies to jurisdiction
type administrative territorial entity of the United States
['Arizona House of Representatives', 'applies to jurisdiction', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity_of_the_United_States . resource:Arizona_House_of_Representatives property:applies_to_jurisdiction ?h }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2384499
Q852446
USER
And also tell me about Utah State Legislature?
(Q2384499,P1001,c(Q852446))
action filter_type
action find
entity Q2384499
relation P1001
type Q852446
['Q2384499', 'P1001', {'concept': 'Q852446'}]
SELECT DISTINCT ?m WHERE { resource:Q2384499 property:P1001 ?m . ?m rdf:type ontology:Q852446 }
Utah State Legislature
action filter_type
action find
entity Utah State Legislature
relation applies to jurisdiction
type administrative territorial entity of the United States
['Utah State Legislature', 'applies to jurisdiction', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?m WHERE { resource:Utah_State_Legislature property:applies_to_jurisdiction ?m . ?m rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q829
SYSTEM
Utah
Q829
(Q2384499,P1001,c(Q852446))
action filter_type
action find
entity Q2384499
relation P1001
type Q852446
[ANSWER]
['Q2384499', 'P1001', {'concept': 'Q852446'}]
SELECT DISTINCT ?m WHERE { resource:Q2384499 property:P1001 ?m . ?m rdf:type ontology:Q852446 }
Utah
Utah
action filter_type
action find
entity Utah State Legislature
relation applies to jurisdiction
type administrative territorial entity of the United States
['Utah State Legislature', 'applies to jurisdiction', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?m WHERE { resource:Utah_State_Legislature property:applies_to_jurisdiction ?m . ?m rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q829 Q569601 Q501872
P17
Q15617994
USER
Is that US administrative territory located in Vierherrenborn and Oldendorf ?
(Q829,P17,Q569601) (Q829,P17,Q501872)
action is_in
entity Q829
action intersection
action find_reverse
entity Q569601
relation P17
action find_reverse
entity Q501872
relation P17
['Q829', 'P17', 'Q569601'] ['Q829', 'P17', 'Q501872']
ASK WHERE { resource:Q829 property:P17 resource:Q569601 . resource:Q829 property:P17 resource:Q501872 }
Utah Vierherrenborn Oldendorf
action is_in
entity Utah
action intersection
action find_reverse
entity Vierherrenborn
relation country
action find_reverse
entity Oldendorf
relation country
['Utah', 'country', 'Vierherrenborn'] ['Utah', 'country', 'Oldendorf']
ASK WHERE { resource:Utah property:country resource:Vierherrenborn . resource:Utah property:country resource:Oldendorf }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q829,P17,Q569601) (Q829,P17,Q501872)
action is_in
entity Q829
action intersection
action find_reverse
entity Q569601
relation P17
action find_reverse
entity Q501872
relation P17
[ANSWER]
['Q829', 'P17', 'Q569601'] ['Q829', 'P17', 'Q501872']
ASK WHERE { resource:Q829 property:P17 resource:Q569601 . resource:Q829 property:P17 resource:Q501872 }
No
action is_in
entity Utah
action intersection
action find_reverse
entity Vierherrenborn
relation country
action find_reverse
entity Oldendorf
relation country
['Utah', 'country', 'Vierherrenborn'] ['Utah', 'country', 'Oldendorf']
ASK WHERE { resource:Utah property:country resource:Vierherrenborn . resource:Utah property:country resource:Oldendorf }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q967737
P748
Q12737077 Q502895 Q12737077
USER
How many occupations did more number of occupations or people appoint than United States Secretary of Transportation ?
(c(Q12737077),P748,c(Q12737077)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q967737
relation P748
type Q12737077
type Q502895
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) ?b WHERE { { ?b property:P748 ?l . ?l rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q12737077 } UNION { ?b property:P748 ?l . ?b rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q502895 } } GROUP BY ?b } . FILTER ( ?j > ?s ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { { ?t rdf:type ontology:Q12737077 } UNION { ?t rdf:type ontology:Q502895 } } . resource:Q967737 property:P748 ?t } } }
United States Secretary of Transportation
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity United States Secretary of Transportation
relation appointed by
type occupation
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) ?b WHERE { { ?b property:appointed_by ?l . ?l rdf:type ontology:occupation . ?b rdf:type ontology:occupation } UNION { ?b property:appointed_by ?l . ?b rdf:type ontology:occupation . ?l rdf:type ontology:common_name } } GROUP BY ?b } . FILTER ( ?j > ?s ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { { ?t rdf:type ontology:occupation } UNION { ?t rdf:type ontology:common_name } } . resource:United_States_Secretary_of_Transportation property:appointed_by ?t } } }
[]
occupation common name occupation
SYSTEM
151
Q15934457 Q748607 Q3253692 Q192711 Q6865816 Q6865958 Q3251824 Q1846384 Q2631987 Q737115 Q6578215 Q1146214 Q23906787 Q6866004 Q4377222 Q14984399 Q15304810 Q1511951 Q191827 Q1476458 Q15407843 Q2484309 Q2012061 Q20736121 Q19190022 Q3251837 Q6865747 Q7444357 Q7444352 Q3246797 Q1749063 Q1371091 Q3315116 Q3477307 Q1369302 Q24636364 Q14565638 Q251724 Q835586 Q4970706 Q6572133 Q1006398 Q6865770 Q531471 Q274948 Q1723031 Q369500 Q13527950 Q3315120 Q6866468 Q313465 Q2636053 Q15971570 Q464103 Q1430943 Q3556884 Q3858507 Q1655971 Q12270252 Q1571023 Q1339242 Q796897 Q1124265 Q1550276 Q208487 Q4294939 Q3477306 Q866756 Q6866295 Q4377230 Q7240361 Q565424 Q5195495 Q27088842 Q2560704 Q3251821 Q3251819 Q4294945 Q862559 Q3564227 Q6866264 Q6865750 Q7240360 Q182762 Q16933549 Q18694351 Q45369 Q1195049 Q6865853 Q1060844 Q687075 Q3397406 Q3251775 Q1587677 Q691615 Q839078 Q3251779 Q2911019 Q2430415 Q6866194 Q152814 Q3251793 Q1192903 Q6865904 Q2741479 Q195965 Q6123144 Q3401758 Q7240356 Q6865864 Q1975365 Q609884 Q13527909 Q3315114 Q11895063 Q1123764 Q1469153 Q12270260 Q6865789 Q7240368 Q1195270 Q3297079 Q6865995 Q6865781 Q7013201 Q2505890 Q6865756 Q16009376 Q3251800 Q3315134 Q3259469 Q5097071 Q6865981 Q3777749 Q111784 Q1362216 Q3251807 Q13526082 Q6866016 Q1790154 Q6866422 Q3251818 Q6866427 Q6865902 Q738695 Q844587 Q25860233 Q20877172 Q2334076 Q541355 Q702650
(c(Q12737077),P748,c(Q12737077)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q967737
relation P748
type Q12737077
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) ?b WHERE { { ?b property:P748 ?l . ?l rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q12737077 } UNION { ?b property:P748 ?l . ?b rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q502895 } } GROUP BY ?b } . FILTER ( ?j > ?s ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { { ?t rdf:type ontology:Q12737077 } UNION { ?t rdf:type ontology:Q502895 } } . resource:Q967737 property:P748 ?t } } }
Minister of Transport Minister of International Trade President of the Treasury Board Prime Minister of India Minister for Education and Skills Minister for Social Protection Minister of Natural Resources Secretary of State for Wales Attorney General for England and Wales Prime Minister of Estonia Premier of Saskatchewan Tánaiste Bishop of Nevers Minister for the Environment, Community and Local Government Premier of Nunavut Secretary of State for Environment, Food and Rural Affairs Prime Minister of Romania Prime Minister of South Africa Taoiseach European Commissioner for the Environment Prime Minister of South Korea Secretary of State for the Home Department Leader of the House of Lords Bishop of Versailles Prime Minister of Iceland Minister of Canadian Heritage Minister for Arts, Heritage and the Gaeltacht Secretary of State for Work and Pensions Secretary of State for International Development Secretary of State for Transport Minister for Foreign Affairs of Sweden Secretary of State for Foreign and Commonwealth Affairs Minister for the Civil Service Secretary of State for Justice Secretary of State for Northern Ireland bishop of Nanjing Prime Minister of Bangladesh Chief Secretary for Ireland Prime Minister of Serbia Federal Chancellor of Germany Governor of İstanbul Federal Chancellor of Austria Minister for Communications, Energy and Natural Resources Chancellor of the Exchequer Prime Minister of Japan Prime Minister of Portugal Prime Minister of Latvia Premier of New South Wales Minister of Justice Minister responsible for the Status of Women Minister of External Affairs Leader of the House of Commons President of the Generalitat Valenciana Speaker of the House of Commons Prime Minister of Jamaica Deputy Prime Minister of Canada Secretary of State for Business, Energy and Industrial Strategy Minister of State Premier of New Brunswick Governor of Victoria Chief Justice of Canada Prime Minister of Italy List of Presidents of the Basque Autonomous Community Premier of Western Australia Prime Minister of Israel Minister of Agriculture Secretary of State for Education Prime Minister of Singapore Minister of Public Services and Procurement Prime Minister of Greece Premier of Prince Edward Island Prime Minister of the Bahamas Minister of Economy and Finance of Peru Director of the Holy See Press Office Premier of Ontario Minister of Transport Minister of Fisheries and Oceans Minister for Finance Prime Minister of Malaysia Auditor General of Canada Minister of National Revenue Minister for Agriculture, Food and the Marine Premier of Nova Scotia Prime Minister of Algeria President of the Generalitat of Catalonia Minister of Communications Prime Minister of Slovakia Minister of Aboriginal Affairs and Northern Development Minister for Foreign Affairs and Trade Paymaster General Prime Minister of Sweden Secretary of State for Health Minister of the Environment Prime Minister of France Governor of the Virgin Islands Prime Minister of Canada Minister of Industry Premier of Quebec Prime Minister of Turkey Minister of Human Resources and Skills Development Prime Minister of Malta Minister of Citizenship and Immigration Prime Minister of Yemen Minister for Justice and Equality Chief Executive of Macau Governor of Gibraltar Secretary of State of Puerto Rico Premier of Manitoba Premier of Newfoundland and Labrador Minister for Health Prime Minister of Georgia First Lord of the Treasury Premier of Victoria Minister of National Defence Minister of Transport and Communications Prime Minister of Armenia Prime Minister of Fiji Premier of Yukon Minister for Democratic Reform Premier of the Northwest Territories Prime Minister of Croatia Secretary of State for Culture, Media and Sport Minister for the Cabinet Office Minister for Defence New York City Fire Commissioner Leader of the Government in the House of Commons Minister for Children and Youth Affairs Prime Minister of Albania Minister of Health Minister for Women and Equalities Prime Minister of Poland Chief of the Secret Intelligence Service Minister for Transport, Tourism and Sport Attorney General of Ireland Secretary of State for Scotland First Minister of Scotland Minister of Veterans Affairs Premier of Queensland Minister for the purposes of the Atlantic Canada Opportunities Agency Act Chief Minister of Delhi Minister of Western Economic Diversification Minister of Finance Minister of the Economic Development Agency of Canada for the Regions of Quebec Minister for Jobs, Enterprise and Innovation Prime Minister of Finland Prime Minister of Spain Secretary of State for Exiting the European Union bishop of Amiens Prime Minister of Norway Minister of Foreign Affairs of Canada President of the Executive Yuan
151
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity United States Secretary of Transportation
relation appointed by
type occupation
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) ?b WHERE { { ?b property:appointed_by ?l . ?l rdf:type ontology:occupation . ?b rdf:type ontology:occupation } UNION { ?b property:appointed_by ?l . ?b rdf:type ontology:occupation . ?l rdf:type ontology:common_name } } GROUP BY ?b } . FILTER ( ?j > ?s ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { { ?t rdf:type ontology:occupation } UNION { ?t rdf:type ontology:common_name } } . resource:United_States_Secretary_of_Transportation property:appointed_by ?t } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q25863345
P748
Q12737077 Q502895 Q12737077
USER
And what about Secretary of State for International Trade?
(c(Q12737077),P748,c(Q12737077)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q25863345
relation P748
type Q12737077
type Q502895
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) ?g WHERE { VALUES ( ?b ) { ( ontology:Q12737077 ) ( ontology:Q502895 ) } . ?l rdf:type ?b } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { { { ?d rdf:type ontology:Q502895 } UNION { ?d rdf:type ontology:Q12737077 } } . resource:Q25863345 property:P748 ?d } } . FILTER ( ?x > ?j ) }
Secretary of State for International Trade
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity Secretary of State for International Trade
relation appointed by
type occupation
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) ?g WHERE { VALUES ( ?b ) { ( ontology:occupation ) ( ontology:common_name ) } . ?l rdf:type ?b } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { { { ?d rdf:type ontology:common_name } UNION { ?d rdf:type ontology:occupation } } . resource:Secretary_of_State_for_International_Trade property:appointed_by ?d } } . FILTER ( ?x > ?j ) }
[]
occupation common name occupation
SYSTEM
151
Q15934457 Q748607 Q3253692 Q192711 Q6865816 Q6865958 Q3251824 Q1846384 Q2631987 Q737115 Q6578215 Q1146214 Q23906787 Q6866004 Q4377222 Q14984399 Q15304810 Q1511951 Q191827 Q1476458 Q15407843 Q2484309 Q2012061 Q20736121 Q19190022 Q3251837 Q6865747 Q7444357 Q7444352 Q3246797 Q1749063 Q1371091 Q3315116 Q3477307 Q1369302 Q24636364 Q14565638 Q251724 Q835586 Q4970706 Q6572133 Q1006398 Q6865770 Q531471 Q274948 Q1723031 Q369500 Q13527950 Q3315120 Q6866468 Q313465 Q2636053 Q15971570 Q464103 Q1430943 Q3556884 Q3858507 Q1655971 Q12270252 Q1571023 Q1339242 Q796897 Q1124265 Q1550276 Q208487 Q4294939 Q3477306 Q866756 Q6866295 Q4377230 Q7240361 Q565424 Q5195495 Q27088842 Q2560704 Q3251821 Q3251819 Q4294945 Q862559 Q3564227 Q6866264 Q6865750 Q7240360 Q182762 Q16933549 Q18694351 Q45369 Q1195049 Q6865853 Q1060844 Q687075 Q3397406 Q3251775 Q1587677 Q691615 Q839078 Q3251779 Q2911019 Q2430415 Q6866194 Q152814 Q3251793 Q1192903 Q6865904 Q2741479 Q195965 Q6123144 Q3401758 Q7240356 Q6865864 Q1975365 Q609884 Q13527909 Q3315114 Q11895063 Q1123764 Q1469153 Q12270260 Q6865789 Q7240368 Q1195270 Q3297079 Q6865995 Q6865781 Q7013201 Q2505890 Q6865756 Q16009376 Q3251800 Q3315134 Q3259469 Q5097071 Q6865981 Q3777749 Q111784 Q1362216 Q3251807 Q13526082 Q6866016 Q1790154 Q6866422 Q3251818 Q6866427 Q6865902 Q738695 Q844587 Q25860233 Q20877172 Q2334076 Q541355 Q702650
(c(Q12737077),P748,c(Q12737077)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q25863345
relation P748
type Q12737077
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) ?g WHERE { VALUES ( ?b ) { ( ontology:Q12737077 ) ( ontology:Q502895 ) } . ?l rdf:type ?b } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { { { ?d rdf:type ontology:Q502895 } UNION { ?d rdf:type ontology:Q12737077 } } . resource:Q25863345 property:P748 ?d } } . FILTER ( ?x > ?j ) }
Minister of Transport Minister of International Trade President of the Treasury Board Prime Minister of India Minister for Education and Skills Minister for Social Protection Minister of Natural Resources Secretary of State for Wales Attorney General for England and Wales Prime Minister of Estonia Premier of Saskatchewan Tánaiste Bishop of Nevers Minister for the Environment, Community and Local Government Premier of Nunavut Secretary of State for Environment, Food and Rural Affairs Prime Minister of Romania Prime Minister of South Africa Taoiseach European Commissioner for the Environment Prime Minister of South Korea Secretary of State for the Home Department Leader of the House of Lords Bishop of Versailles Prime Minister of Iceland Minister of Canadian Heritage Minister for Arts, Heritage and the Gaeltacht Secretary of State for Work and Pensions Secretary of State for International Development Secretary of State for Transport Minister for Foreign Affairs of Sweden Secretary of State for Foreign and Commonwealth Affairs Minister for the Civil Service Secretary of State for Justice Secretary of State for Northern Ireland bishop of Nanjing Prime Minister of Bangladesh Chief Secretary for Ireland Prime Minister of Serbia Federal Chancellor of Germany Governor of İstanbul Federal Chancellor of Austria Minister for Communications, Energy and Natural Resources Chancellor of the Exchequer Prime Minister of Japan Prime Minister of Portugal Prime Minister of Latvia Premier of New South Wales Minister of Justice Minister responsible for the Status of Women Minister of External Affairs Leader of the House of Commons President of the Generalitat Valenciana Speaker of the House of Commons Prime Minister of Jamaica Deputy Prime Minister of Canada Secretary of State for Business, Energy and Industrial Strategy Minister of State Premier of New Brunswick Governor of Victoria Chief Justice of Canada Prime Minister of Italy List of Presidents of the Basque Autonomous Community Premier of Western Australia Prime Minister of Israel Minister of Agriculture Secretary of State for Education Prime Minister of Singapore Minister of Public Services and Procurement Prime Minister of Greece Premier of Prince Edward Island Prime Minister of the Bahamas Minister of Economy and Finance of Peru Director of the Holy See Press Office Premier of Ontario Minister of Transport Minister of Fisheries and Oceans Minister for Finance Prime Minister of Malaysia Auditor General of Canada Minister of National Revenue Minister for Agriculture, Food and the Marine Premier of Nova Scotia Prime Minister of Algeria President of the Generalitat of Catalonia Minister of Communications Prime Minister of Slovakia Minister of Aboriginal Affairs and Northern Development Minister for Foreign Affairs and Trade Paymaster General Prime Minister of Sweden Secretary of State for Health Minister of the Environment Prime Minister of France Governor of the Virgin Islands Prime Minister of Canada Minister of Industry Premier of Quebec Prime Minister of Turkey Minister of Human Resources and Skills Development Prime Minister of Malta Minister of Citizenship and Immigration Prime Minister of Yemen Minister for Justice and Equality Chief Executive of Macau Governor of Gibraltar Secretary of State of Puerto Rico Premier of Manitoba Premier of Newfoundland and Labrador Minister for Health Prime Minister of Georgia First Lord of the Treasury Premier of Victoria Minister of National Defence Minister of Transport and Communications Prime Minister of Armenia Prime Minister of Fiji Premier of Yukon Minister for Democratic Reform Premier of the Northwest Territories Prime Minister of Croatia Secretary of State for Culture, Media and Sport Minister for the Cabinet Office Minister for Defence New York City Fire Commissioner Leader of the Government in the House of Commons Minister for Children and Youth Affairs Prime Minister of Albania Minister of Health Minister for Women and Equalities Prime Minister of Poland Chief of the Secret Intelligence Service Minister for Transport, Tourism and Sport Attorney General of Ireland Secretary of State for Scotland First Minister of Scotland Minister of Veterans Affairs Premier of Queensland Minister for the purposes of the Atlantic Canada Opportunities Agency Act Chief Minister of Delhi Minister of Western Economic Diversification Minister of Finance Minister of the Economic Development Agency of Canada for the Regions of Quebec Minister for Jobs, Enterprise and Innovation Prime Minister of Finland Prime Minister of Spain Secretary of State for Exiting the European Union bishop of Amiens Prime Minister of Norway Minister of Foreign Affairs of Canada President of the Executive Yuan
151
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity Secretary of State for International Trade
relation appointed by
type occupation
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) ?g WHERE { VALUES ( ?b ) { ( ontology:occupation ) ( ontology:common_name ) } . ?l rdf:type ?b } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { { { ?d rdf:type ontology:common_name } UNION { ?d rdf:type ontology:occupation } } . resource:Secretary_of_State_for_International_Trade property:appointed_by ?d } } . FILTER ( ?x > ?j ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6136331 Q1444543
P27 P17
Q15617994
USER
Which administrative territories are Arizona House of Representatives present in or are James Hoy, Baron Hoy a civilian of ?
OR((Q1444543,P17,c(Q15617994)), (Q6136331,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1444543
relation P17
action find
entity Q6136331
relation P27
type Q15617994
{'OR': [['Q1444543', 'P17', {'concept': 'Q15617994'}], ['Q6136331', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q1444543 property:P17 ?h } UNION { resource:Q6136331 property:P27 ?h } } . ?h rdf:type ontology:Q15617994 }
James Hoy, Baron Hoy Arizona House of Representatives
action filter_type
action union
action find
entity Arizona House of Representatives
relation country
action find
entity James Hoy, Baron Hoy
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Arizona House of Representatives', 'country', {'concept': 'designation for an administrative territorial entity'}], ['James Hoy, Baron Hoy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Arizona_House_of_Representatives property:country ?h } UNION { resource:James_Hoy,_Baron_Hoy property:country_of_citizenship ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q145
SYSTEM
United States of America, United Kingdom
Q30 Q145
OR((Q1444543,P17,c(Q15617994)), (Q6136331,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1444543
relation P17
action find
entity Q6136331
relation P27
type Q15617994
The [ANSWERS] are Arizona House of Representatives present in or are James Hoy, Baron Hoy a civilian of
{'OR': [['Q1444543', 'P17', {'concept': 'Q15617994'}], ['Q6136331', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q1444543 property:P17 ?h } UNION { resource:Q6136331 property:P27 ?h } } . ?h rdf:type ontology:Q15617994 }
United States of America United Kingdom
The United States of America and United Kingdom are Arizona House of Representatives present in or are James Hoy, Baron Hoy a civilian of
United States of America United Kingdom
action filter_type
action union
action find
entity Arizona House of Representatives
relation country
action find
entity James Hoy, Baron Hoy
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Arizona House of Representatives', 'country', {'concept': 'designation for an administrative territorial entity'}], ['James Hoy, Baron Hoy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Arizona_House_of_Representatives property:country ?h } UNION { resource:James_Hoy,_Baron_Hoy property:country_of_citizenship ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q25130
P706
Q1048835 Q1267889 Q15617994
USER
How many administrative territories are located in greater number of political territories and waterways than Spiekeroog ?
(c(Q15617994),P706,c(Q1048835)|c(Q1267889))
action count
action greater
action union
action find_tuple_counts
relation P706
type Q15617994
type Q1048835
action find_tuple_counts
relation P706
type Q15617994
type Q1267889
action count
action filter_multi_types
action find
entity Q25130
relation P706
type Q1048835
type Q1267889
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) ?f WHERE { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:Q1048835 ) ( ontology:Q1267889 ) } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Q25130 property:P706 ?x . { { ?x rdf:type ontology:Q1048835 } UNION { ?x rdf:type ontology:Q1267889 } } } } . FILTER ( ?h > ?n ) }
Spiekeroog
action count
action greater
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type waterway
action count
action filter_multi_types
action find
entity Spiekeroog
relation located on terrain feature
type political territorial entity
type waterway
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) ?f WHERE { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:political_territorial_entity ) ( ontology:waterway ) } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Spiekeroog property:located_on_terrain_feature ?x . { { ?x rdf:type ontology:political_territorial_entity } UNION { ?x rdf:type ontology:waterway } } } } . FILTER ( ?h > ?n ) }
[]
political territorial entity waterway designation for an administrative territorial entity
SYSTEM
3
Q2712111 Q216422 Q518171
(c(Q15617994),P706,c(Q1048835)|c(Q1267889))
action count
action greater
action union
action find_tuple_counts
relation P706
type Q15617994
type Q1048835
action find_tuple_counts
relation P706
type Q15617994
type Q1267889
action count
action filter_multi_types
action find
entity Q25130
relation P706
type Q1048835
type Q1267889
[ANSWER]
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) ?f WHERE { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:Q1048835 ) ( ontology:Q1267889 ) } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Q25130 property:P706 ?x . { { ?x rdf:type ontology:Q1048835 } UNION { ?x rdf:type ontology:Q1267889 } } } } . FILTER ( ?h > ?n ) }
Zagori Samsø Ellhofen
3
action count
action greater
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type waterway
action count
action filter_multi_types
action find
entity Spiekeroog
relation located on terrain feature
type political territorial entity
type waterway
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) ?f WHERE { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:political_territorial_entity ) ( ontology:waterway ) } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Spiekeroog property:located_on_terrain_feature ?x . { { ?x rdf:type ontology:political_territorial_entity } UNION { ?x rdf:type ontology:waterway } } } } . FILTER ( ?h > ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q507258
P706
Q1048835 Q1267889 Q15617994
USER
And what about Kipfenberg?
(c(Q15617994),P706,c(Q1048835)|c(Q1267889))
action count
action greater
action union
action find_tuple_counts
relation P706
type Q15617994
type Q1048835
action find_tuple_counts
relation P706
type Q15617994
type Q1267889
action count
action filter_multi_types
action find
entity Q507258
relation P706
type Q1048835
type Q1267889
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?p WHERE { { ?p property:P706 ?x . ?p rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } UNION { ?p rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1267889 . ?p property:P706 ?x } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { resource:Q507258 property:P706 ?h . { VALUES ( ?r ) { ( ontology:Q1048835 ) ( ontology:Q1267889 ) } . ?h rdf:type ?r } } } . FILTER ( ?w > ?f ) }
Kipfenberg
action count
action greater
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type waterway
action count
action filter_multi_types
action find
entity Kipfenberg
relation located on terrain feature
type political territorial entity
type waterway
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?p WHERE { { ?p property:located_on_terrain_feature ?x . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } UNION { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:waterway . ?p property:located_on_terrain_feature ?x } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { resource:Kipfenberg property:located_on_terrain_feature ?h . { VALUES ( ?r ) { ( ontology:political_territorial_entity ) ( ontology:waterway ) } . ?h rdf:type ?r } } } . FILTER ( ?w > ?f ) }
[]
political territorial entity waterway designation for an administrative territorial entity
SYSTEM
3
Q2712111 Q216422 Q518171
(c(Q15617994),P706,c(Q1048835)|c(Q1267889))
action count
action greater
action union
action find_tuple_counts
relation P706
type Q15617994
type Q1048835
action find_tuple_counts
relation P706
type Q15617994
type Q1267889
action count
action filter_multi_types
action find
entity Q507258
relation P706
type Q1048835
type Q1267889
[ANSWER]
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?p WHERE { { ?p property:P706 ?x . ?p rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } UNION { ?p rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1267889 . ?p property:P706 ?x } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { resource:Q507258 property:P706 ?h . { VALUES ( ?r ) { ( ontology:Q1048835 ) ( ontology:Q1267889 ) } . ?h rdf:type ?r } } } . FILTER ( ?w > ?f ) }
Zagori Samsø Ellhofen
3
action count
action greater
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type waterway
action count
action filter_multi_types
action find
entity Kipfenberg
relation located on terrain feature
type political territorial entity
type waterway
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?p WHERE { { ?p property:located_on_terrain_feature ?x . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } UNION { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:waterway . ?p property:located_on_terrain_feature ?x } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { resource:Kipfenberg property:located_on_terrain_feature ?h . { VALUES ( ?r ) { ( ontology:political_territorial_entity ) ( ontology:waterway ) } . ?h rdf:type ?r } } } . FILTER ( ?w > ?f ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q12737077 Q386724 Q1792379
USER
Which occupations are expressed in min number of works and art genres ?
(c(Q386724)|c(Q1792379),P180,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
[[{'concept': 'Q386724'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) ?l WHERE { VALUES ( ?z ) { ( ontology:Q386724 ) ( ontology:Q1792379 ) } . ?u rdf:type ?z } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) ?b WHERE { { ?c property:P180 ?b . ?b rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q1792379 } UNION { ?c property:P180 ?b . ?b rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q386724 } } GROUP BY ?b } . FILTER ( ?m = ?d ) }
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
[[{'concept': 'work'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) ?l WHERE { VALUES ( ?z ) { ( ontology:work ) ( ontology:art_genre ) } . ?u rdf:type ?z } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) ?b WHERE { { ?c property:depicts ?b . ?b rdf:type ontology:occupation . ?c rdf:type ontology:art_genre } UNION { ?c property:depicts ?b . ?b rdf:type ontology:occupation . ?c rdf:type ontology:work } } GROUP BY ?b } . FILTER ( ?m = ?d ) }
[]
occupation work art genre
Q131512 Q186360 Q242468
SYSTEM
farmer, nurse, tailor
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q177220 Q1569439 Q131512 Q16735601 Q37226 Q1401609 Q27621374 Q152355 Q1218776 Q1124183 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q36180 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q1250916 Q4610556 Q81710 Q1259917 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q4504549 Q842782 Q47064 Q185196 Q486748 Q328325 Q11900058 Q483501 Q215536 Q212238 Q22085061 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q19723482 Q12902372 Q170790 Q1139055 Q1028181 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q181765 Q327321 Q549322 Q327029 Q733786 Q2309900 Q805221 Q5371902 Q17126809 Q12097 Q848550 Q386854 Q202648 Q1753370 Q107711 Q12059906 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q855855 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q19546 Q6116659 Q537575 Q20826540 Q715301 Q11338576 Q622630 Q3330547 Q3214532 Q14009165 Q15954519 Q2981922 Q10833314 Q1318187 Q29182 Q326358 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q10873124 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q20489032 Q1509714 Q152002 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q207651 Q5716684 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q1627992 Q2309784 Q253567 Q3439798 Q2191547 Q838811 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q331432 Q639669 Q49757 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q15296811 Q765541 Q2011889 Q49476 Q1281618 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q432386 Q191808 Q182436 Q2259532 Q811122 Q373017 Q2180295 Q1294787 Q1630100 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q386724)|c(Q1792379),P180,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
[ANSWERS] are expressed in min number of works and art genres
[[{'concept': 'Q386724'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) ?l WHERE { VALUES ( ?z ) { ( ontology:Q386724 ) ( ontology:Q1792379 ) } . ?u rdf:type ?z } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) ?b WHERE { { ?c property:P180 ?b . ?b rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q1792379 } UNION { ?c property:P180 ?b . ?b rdf:type ontology:Q12737077 . ?c rdf:type ontology:Q386724 } } GROUP BY ?b } . FILTER ( ?m = ?d ) }
fiddler acrobat milkmaid worker standard-bearer singer sheep shearer farmer florist teacher vaquero bear hunter cobbler arriero lumberjack sewing executor astronaut cooper house painter organist double-bassist actor writer valet sex worker woman of letters ventriloquist amateur wrestler geographer Archbishop of Canterbury minister receptionist milkman coachman warrior model shepherd violinist deacon wet nurse sailor clown spinner butcher religious servant detective military personnel midwife pianist stonemason explorer artist merchant civil servant sower abbé architect street musician nurse parson mandolinist flautist mathematician tax collector painter mayor bell-ringer miner beekeeper washerwoman cellist Holy Roman Emperor bricklayer torero mechanic monk helmsman ballet dancer harpsichordist rescuer king VOC Opperhoofd in Japan drummer referee curate firefighter herder dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja page friar hobo fishmonger recorder player laborer pope priestess gravedigger erudite comics artist boxer odalisque chronicler plowman trapper alchemist American pioneer tennis player scrivener bishop joiner goatherd pedicure Catholic priest courtesan member of parliament bartender clogmaker peddler reaper condottiero canon chess player discus thrower bassoonist mufti cowboy rabbi mime artist scientist harpist blacksmith mahout magistrate tailor cardinal housekeeper theologian courier monarch salt pan worker porter pastor courtier judge abbot matador goldsmith waterseller pretender astronomer surgeon domestic worker cook executioner dancer Kassandra embroiderer high-ranking civil servant in France exotic dancer lyricist plasterer gardener composer miller tightrope walker maid lady's maid sport cyclist apprentice King of France picador peasant woodcutter lacemaker Snake charming carpenter school teacher officer fisherman musician poet baker knife grinder police officer guard Maid of honour draughtsperson kazasker madam archbishop sculptor boatman salesperson cricketer aviator milkmaid preacher nun librarian cleric construction worker basketry mail carrier artisan art model bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
Farmer, nurse and tailor are expressed in min number of works and art genres
farmer nurse tailor
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
[[{'concept': 'work'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) ?l WHERE { VALUES ( ?z ) { ( ontology:work ) ( ontology:art_genre ) } . ?u rdf:type ?z } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) ?b WHERE { { ?c property:depicts ?b . ?b rdf:type ontology:occupation . ?c rdf:type ontology:art_genre } UNION { ?c property:depicts ?b . ?b rdf:type ontology:occupation . ?c rdf:type ontology:work } } GROUP BY ?b } . FILTER ( ?m = ?d ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q124739 Q816
P915
Q838948
USER
Which works of art had Arizona or Tijuana as their location of filming ?
OR((c(Q838948),P915,Q816), (c(Q838948),P915,Q124739))
action filter_type
action union
action find_reverse
entity Q816
relation P915
action find_reverse
entity Q124739
relation P915
type Q838948
{'OR': [[{'concept': 'Q838948'}, 'P915', 'Q816'], [{'concept': 'Q838948'}, 'P915', 'Q124739']]}
SELECT DISTINCT ?y WHERE { { { ?y property:P915 resource:Q124739 } UNION { ?y property:P915 resource:Q816 } } . ?y rdf:type ontology:Q838948 }
Tijuana Arizona
action filter_type
action union
action find_reverse
entity Arizona
relation filming location
action find_reverse
entity Tijuana
relation filming location
type work of art
{'OR': [[{'concept': 'work of art'}, 'filming location', 'Arizona'], [{'concept': 'work of art'}, 'filming location', 'Tijuana']]}
SELECT DISTINCT ?y WHERE { { { ?y property:filming_location resource:Tijuana } UNION { ?y property:filming_location resource:Arizona } } . ?y rdf:type ontology:work_of_art }
[]
work of art
Q260616 Q528095 Q901148 Q979196 Q615291 Q220299 Q401976 Q7721017 Q134773 Q17738
SYSTEM
Some of them are Arizona Dream, Superman III, Over the Top, Psycho, Auto Focus, Zoom, Fast Five, The Call of the Wild, Forrest Gump, Star Wars Episode IV: A New Hope
Q1420651 Q3808166 Q477630 Q1518218 Q2004468 Q271690 Q675520 Q469624 Q151946 Q723679 Q4927812 Q1534001 Q3492096 Q602522 Q22075229 Q1113303 Q495804 Q329448 Q105801 Q32228 Q7366535 Q1542548 Q1345920 Q569881 Q2376223 Q1122688 Q50714 Q1146194 Q1341009 Q2579784 Q3281877 Q645169 Q25136425 Q59534 Q2708940 Q916431 Q19881511 Q1431684 Q530507 Q12126186 Q114819 Q192073 Q6849439 Q673195 Q760012 Q191100 Q7228463 Q392355 Q232251 Q4975435 Q3233309 Q1381289 Q7721017 Q269912 Q7721701 Q728539 Q941688 Q1660388 Q503638 Q1218601 Q1585546 Q730228 Q676039 Q1428990 Q334735 Q221236 Q1213621 Q24251026 Q249288 Q3818389 Q23755576 Q1497862 Q823349 Q670059 Q2363927 Q304488 Q3282657 Q1034060 Q756416 Q582978 Q5006014 Q528095 Q5619383 Q7634730 Q162518 Q134773 Q6754318 Q4643913 Q329131 Q646806 Q673437 Q615291 Q481091 Q2027905 Q2261147 Q7445368 Q3028045 Q844303 Q3521117 Q17337292 Q230552 Q1133647 Q168154 Q408102 Q577306 Q1516852 Q1506671 Q6510333 Q748924 Q770965 Q1166194 Q4024772 Q5469640 Q245521 Q247130 Q1194785 Q1519938 Q830367 Q759359 Q1665929 Q19363560 Q5685379 Q181803 Q4374144 Q20814813 Q979196 Q260616 Q733995 Q846679 Q1213010 Q5180032 Q461682 Q15653636 Q547189 Q3604780 Q620099 Q431793 Q1189674 Q2972332 Q1548431 Q2963389 Q737109 Q6269895 Q6464721 Q7799029 Q547368 Q1691401 Q103474 Q276769 Q3235162 Q16991963 Q604083 Q5575373 Q2263944 Q1263691 Q7604132 Q401976 Q954703 Q1035124 Q26964660 Q848785 Q258847 Q1191106 Q1392442 Q1092399 Q766135 Q1654891 Q930887 Q1511905 Q939084 Q1008351 Q1219310 Q270215 Q339693 Q7033511 Q163038 Q114665 Q7770144 Q142292 Q232222 Q841961 Q220299 Q642546 Q1576487 Q7995657 Q548919 Q1357016 Q2168261 Q640547 Q791651 Q603696 Q499935 Q3795162 Q45388 Q1218542 Q2017333 Q2294168 Q937395 Q23395 Q696042 Q4087909 Q883213 Q465789 Q179215 Q303477 Q17738 Q17088834 Q386164 Q1191093 Q16252919 Q3523379 Q901148 Q1324120 Q3360383 Q431660 Q498442 Q931165 Q670439 Q795042 Q740528 Q2250146 Q742614 Q3986195 Q1514670 Q467582 Q39969
OR((c(Q838948),P915,Q816), (c(Q838948),P915,Q124739))
action filter_type
action union
action find_reverse
entity Q816
relation P915
action find_reverse
entity Q124739
relation P915
type Q838948
[ANSWERS] had Arizona or Tijuana as their location of filming
{'OR': [[{'concept': 'Q838948'}, 'P915', 'Q816'], [{'concept': 'Q838948'}, 'P915', 'Q124739']]}
SELECT DISTINCT ?y WHERE { { { ?y property:P915 resource:Q124739 } UNION { ?y property:P915 resource:Q816 } } . ?y rdf:type ontology:Q838948 }
Tombstone Jesus' Son The Outlaw Josey Wales Red Rock West The Forsaken Mars Attacks! Maverick Planet of the Apes Eight Legged Freaks Star Trek: Generations Blood into Wine The Prophecy Under Two Flags The Eiger Sanction Strange Blood The War of the Worlds The Flight of the Phoenix Public Enemies Stargate The Nutty Professor Roosters Grand Canyon Song of the South What Ever Happened to Aunt Alice? Big Trouble The Postman Stagecoach Wayne's World Starman Gravity Just One of the Guys View from the Top Ghost Town Planet of the Apes The Hangover Part III Alice Doesn't Live Here Anymore The Trail to Yesterday What Planet Are You From? McLintock! Mind the Gap Dune Little Miss Sunshine Mikey Solaris Gunga Din Transformers: Revenge of the Fallen Pony Soldier Rambo III Stir Crazy Brothel Violent Saturday Up in Smoke The Call of the Wild Into the Wild The Catcher Next Eating Out Impostor Easy Rider The Greatest Story Ever Told Harley Davidson and the Marlboro Man Private Lessons The Grapes of Wrath Flirting with Disaster Lilies of the Field Star Trek: First Contact Major League Transformers: The Last Knight Three Amigos Riders of the Purple Sage Stitched Middle Men Posse Arizona Used Cars The Grifters Young Billy Young Can't Buy Me Love The Quick and the Dead Joe Kidd C.C. and Company Superman III Guns of the Timberland Sugar How the West Was Won Forrest Gump Maquilapolis 7 mujeres, 1 homosexual y Carlos Jerry Maguire Cannonball Run II Rio Lobo Auto Focus Der Kaiser von Kalifornien Billy Jack O.C. and Stiggs Sedona Flying Tigers U Turn The Graves Sicario Back to the Future Part III Red River Once Upon a Time in the West Fire Birds The Gauntlet Taxi Take Me Home Tonight Least Among Saints The Living Desert Confessions of a Dangerous Mind Exorcist II: The Heretic Zoot Suit Forget About It 6-18-67 3:10 to Yuma Father Hood The Getaway Best of the Best 2 The Cannonball Run The Wraith Bonnie's Kids Hawmps! Star Wars Episode VI: Return of the Jedi Fast Getaway II The Great American Snuff Film Psycho Arizona Dream Piranha 3D The Karate Kid The Savages Coyote The Scorpion King Gunsight Ridge Dead Man Across the Line: The Exodus of Charlie Wright Boys on the Side Nurse Betty Everything Must Go Blood on the Moon Stay Tuned Chicken Every Sunday Two-Lane Blacktop Jolene La Quinceañera Thunder Run Bus Stop Joe Dirt 2001: A Space Odyssey The Searchers Night of the Lepus Extreme Love: Dementia The Informant! Goats The Secret Agent Club Dudes Static Fast Five A Home at the End of the World Captain Newman, M.D. The Phoenix Incident Jarhead Raise Your Voice The Banger Sisters Clear and Present Danger Tin Cup Gas Food Lodging Waking Up in Reno Vegas Vacation My Son, My Son, What Have Ye Done? The Flintstones in Viva Rock Vegas Rio Bravo National Lampoon's Vacation Contact Mafia! Night Train Psycho Strange Lady in Town The Trial of Billy Jack Traffic Gunfight at the O.K. Corral Death Wish Zoom Mona Lisa Smile Legally Blondes White of the Eye The Lone Ranger Three Kings Kit Carson Universal Soldier Away We Go Days of Thunder Poltergeist II: The Other Side Heaven with a Gun Coogan's Bluff The Great White Hope Oklahoma! Murphy's Romance Revenge of the Nerds Fear and Loathing in Las Vegas Hulk Bless the Beasts and Children Young Guns II Breakdown Indiana Jones and the Temple of Doom The Big Country Star Wars Episode IV: A New Hope The Vision of Paolo Soleri: Prophet in the Desert Near Dark Harry and Tonto The Man Who Loved Cat Dancing The Wilderness Trail Over the Top El Dorado Padre Nuestro Godzilla: Final Wars Spaceballs Clueless Raising Arizona Bill & Ted's Excellent Adventure Wild Wild West The Furies Transamerica The Canyon Geronimo: An American Legend The Kingdom Aces: Iron Eagle III
Arizona Dream, Superman III, Over the Top, Psycho, Auto Focus, Zoom, Fast Five, The Call of the Wild, Forrest Gump and Star Wars Episode IV: A New Hope had Arizona or Tijuana as their location of filming
Arizona Dream Superman III Over the Top Psycho Auto Focus Zoom Fast Five The Call of the Wild Forrest Gump Star Wars Episode IV: A New Hope
action filter_type
action union
action find_reverse
entity Arizona
relation filming location
action find_reverse
entity Tijuana
relation filming location
type work of art
{'OR': [[{'concept': 'work of art'}, 'filming location', 'Arizona'], [{'concept': 'work of art'}, 'filming location', 'Tijuana']]}
SELECT DISTINCT ?y WHERE { { { ?y property:filming_location resource:Tijuana } UNION { ?y property:filming_location resource:Arizona } } . ?y rdf:type ontology:work_of_art }
[]