Simple Question (Direct)
Simple Question
Q15113326
P106
Q12737077
USER
Which occupation is the profession of Vladimír Coufal ?
(Q15113326,P106,c(Q12737077))
action filter_type
action find
entity Q15113326
relation P106
type Q12737077
['Q15113326', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q15113326 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
Vladimír Coufal
action filter_type
action find
entity Vladimír Coufal
relation occupation
type occupation
['Vladimír Coufal', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Vladimír_Coufal property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q15113326,P106,c(Q12737077))
action filter_type
action find
entity Q15113326
relation P106
type Q12737077
Player [ANSWER] is the profession of Vladimír Coufal
['Q15113326', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q15113326 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
association football player
Player association football player is the profession of Vladimír Coufal
association football player
action filter_type
action find
entity Vladimír Coufal
relation occupation
type occupation
['Vladimír Coufal', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Vladimír_Coufal property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15113326
P19
Q7275
USER
Which state was Vladimír Coufal born in ?
(Q15113326,P19,c(Q7275))
action filter_type
action find
entity Q15113326
relation P19
type Q7275
['Q15113326', 'P19', {'concept': 'Q7275'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q7275 . resource:Q15113326 property:P19 ?b }
Vladimír Coufal
action filter_type
action find
entity Vladimír Coufal
relation place of birth
type state
['Vladimír Coufal', 'place of birth', {'concept': 'state'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:state . resource:Vladimír_Coufal property:place_of_birth ?b }
[]
state
Q33946
SYSTEM
Czechoslovakia
Q33946
(Q15113326,P19,c(Q7275))
action filter_type
action find
entity Q15113326
relation P19
type Q7275
Vladimír Coufal was born in [ANSWER]
['Q15113326', 'P19', {'concept': 'Q7275'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q7275 . resource:Q15113326 property:P19 ?b }
Czechoslovakia
Vladimír Coufal was born in Czechoslovakia
Czechoslovakia
action filter_type
action find
entity Vladimír Coufal
relation place of birth
type state
['Vladimír Coufal', 'place of birth', {'concept': 'state'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:state . resource:Vladimír_Coufal property:place_of_birth ?b }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P194
Q11204 Q7275
USER
How many legislatures are the legislative bodies for atleast 1 state ?
(c(Q7275),P194,c(Q11204))
action count
action atleast
action find_reverse_tuple_counts
relation P194
type Q11204
type Q7275
value 1
[{'concept': 'Q7275'}, 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { FILTER ( ?i >= 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?i ) WHERE { ?x rdf:type ontology:Q11204 . ?j rdf:type ontology:Q7275 . ?j property:P194 ?x } GROUP BY ?x } }
action count
action atleast
action find_reverse_tuple_counts
relation legislative body
type legislature
type state
value 1
[{'concept': 'state'}, 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { FILTER ( ?i >= 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?i ) WHERE { ?x rdf:type ontology:legislature . ?j rdf:type ontology:state . ?j property:legislative_body ?x } GROUP BY ?x } }
[]
legislature state
SYSTEM
15
Q494162 Q6879217 Q980284 Q669970 Q1579497 Q3244416 Q388526 Q539149 Q3363019 Q2326816 Q700757 Q920222 Q876529 Q497578 Q3103766
(c(Q7275),P194,c(Q11204))
action count
action atleast
action find_reverse_tuple_counts
relation P194
type Q11204
type Q7275
value 1
[ANSWER]
[{'concept': 'Q7275'}, 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { FILTER ( ?i >= 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?i ) WHERE { ?x rdf:type ontology:Q11204 . ?j rdf:type ontology:Q7275 . ?j property:P194 ?x } GROUP BY ?x } }
National Assembly Mississippi Legislature South Carolina General Assembly Imperial Diet Parliament of Montenegro East Bengal Legislative Assembly Estates of Sint Maarten Congress of Deputies Assembly of the Union Estates of Curaçao Diet of Hungary National Assembly Imperial Diet Witenagemot Georgia General Assembly
15
action count
action atleast
action find_reverse_tuple_counts
relation legislative body
type legislature
type state
value 1
[{'concept': 'state'}, 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { FILTER ( ?i >= 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?i ) WHERE { ?x rdf:type ontology:legislature . ?j rdf:type ontology:state . ?j property:legislative_body ?x } GROUP BY ?x } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P194
Q1752346 Q11204 Q7275
USER
How many states have approximately 1 assemblies and legislatures as their representative body ?
(c(Q7275),P194,c(Q1752346)|c(Q11204))
action count
action approx
action union
action find_tuple_counts
relation P194
type Q7275
type Q1752346
action find_tuple_counts
relation P194
type Q7275
type Q11204
value 1
[{'concept': 'Q7275'}, 'P194', [{'concept': 'Q1752346'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?a WHERE { { ?a property:P194 ?k . ?a rdf:type ontology:Q7275 . ?k rdf:type ontology:Q1752346 } UNION { ?a property:P194 ?k . ?a rdf:type ontology:Q7275 . ?k rdf:type ontology:Q11204 } } GROUP BY ?a } . FILTER ( ?n = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation legislative body
type state
type assembly
action find_tuple_counts
relation legislative body
type state
type legislature
value 1
[{'concept': 'state'}, 'legislative body', [{'concept': 'assembly'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?a WHERE { { ?a property:legislative_body ?k . ?a rdf:type ontology:state . ?k rdf:type ontology:assembly } UNION { ?a property:legislative_body ?k . ?a rdf:type ontology:state . ?k rdf:type ontology:legislature } } GROUP BY ?a } . FILTER ( ?n = 1 ) }
[]
assembly legislature state
SYSTEM
65
Q241748 Q774783 Q105092 Q70802 Q842931 Q152115 Q121932 Q7318 Q18285930 Q179876 Q207162 Q25279 Q174193 Q233263 Q330988 Q27306 Q533558 Q1044536 Q21203 Q215530 Q488521 Q161885 Q328818 Q2638486 Q171150 Q1789596 Q203493 Q147909 Q980 Q58202 Q150981 Q518101 Q16410 Q1062422 Q15864 Q844250 Q303421 Q2396442 Q178038 Q386496 Q71092 Q217230 Q170072 Q146328 Q58296 Q371334 Q156038 Q824489 Q7314513 Q1140152 Q615902 Q1077630 Q491559 Q154195 Q368986 Q285658 Q156020 Q497777 Q12548 Q7314469 Q26273 Q1054184 Q487687 Q161036 Q41304
(c(Q7275),P194,c(Q1752346)|c(Q11204))
action count
action approx
action union
action find_tuple_counts
relation P194
type Q7275
type Q1752346
action find_tuple_counts
relation P194
type Q7275
type Q11204
value 1
[ANSWER]
[{'concept': 'Q7275'}, 'P194', [{'concept': 'Q1752346'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?a WHERE { { ?a property:P194 ?k . ?a rdf:type ontology:Q7275 . ?k rdf:type ontology:Q1752346 } UNION { ?a property:P194 ?k . ?a rdf:type ontology:Q7275 . ?k rdf:type ontology:Q11204 } } GROUP BY ?a } . FILTER ( ?n = 1 ) }
Kingdom of Serbia Sovereign Principality of the United Netherlands Kingdom of Mercia French Third Republic East Pakistan Duchy of Warsaw People's Republic of Bulgaria Nazi Germany German Empire of 1848/1849 Kingdom of England Bourbon Restoration Curaçao United Kingdom of Great Britain and Ireland Second Republic of South Korea Democratic Kampuchea Kingdom of Prussia Kingdom of Croatia-Slavonia Spain under the Restoration Aruba Kingdom of Ireland Fourth Republic of South Korea Kingdom of Great Britain Kingdom of Kent Kingdom of Cambodia Kingdom of Hungary Croatia in personal union with Hungary Kingdom of Romania Kingdom of Bulgaria Bavaria July Monarchy North German Confederation First Republic of Austria People's Republic of Hungary Konbaung Dynasty United Kingdom of the Netherlands Lordship of Ireland Kingdom of Galicia Kingdom of Galicia and Lodomeria Second Spanish Republic Kingdom of Montenegro Second French Empire Empire of Brazil Dutch Republic Commonwealth of the Philippines French Republic Second Mexican Empire Duchy of Courland and Semigallia Estado Novo Republic of South Carolina Irish Republic Kingdom of Finland Septinsular Republic First Republic of South Korea Kingdom of Bavaria Republic of Mississippi First Mexican Empire State of the Teutonic Order First Spanish Republic Holy Roman Empire Republic of Georgia Sint Maarten Khmer Republic Third Republic of South Korea Free State of Prussia Weimar Republic
65
action count
action approx
action union
action find_tuple_counts
relation legislative body
type state
type assembly
action find_tuple_counts
relation legislative body
type state
type legislature
value 1
[{'concept': 'state'}, 'legislative body', [{'concept': 'assembly'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) ?a WHERE { { ?a property:legislative_body ?k . ?a rdf:type ontology:state . ?k rdf:type ontology:assembly } UNION { ?a property:legislative_body ?k . ?a rdf:type ontology:state . ?k rdf:type ontology:legislature } } GROUP BY ?a } . FILTER ( ?n = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q39814 Q33946
P47
Q15617994
USER
Which administrative territories are adjacent to Czechoslovakia or Lovero ?
OR((Q33946,P47,c(Q15617994)), (Q39814,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q33946
relation P47
action find
entity Q39814
relation P47
type Q15617994
{'OR': [['Q33946', 'P47', {'concept': 'Q15617994'}], ['Q39814', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . { { resource:Q33946 property:P47 ?u } UNION { resource:Q39814 property:P47 ?u } } }
Lovero Czechoslovakia
action filter_type
action union
action find
entity Czechoslovakia
relation shares border with
action find
entity Lovero
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Czechoslovakia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Lovero', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Czechoslovakia property:shares_border_with ?u } UNION { resource:Lovero property:shares_border_with ?u } } }
[]
designation for an administrative territorial entity
Q212 Q39263 Q39808 Q218 Q39802 Q36 Q28 Q104585
SYSTEM
Ukraine, Sernio, Tovo di Sant'Agata, Romania, Vervio, Poland, Hungary, Edolo
Q212 Q39263 Q39808 Q218 Q39802 Q36 Q28 Q104585
OR((Q33946,P47,c(Q15617994)), (Q39814,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q33946
relation P47
action find
entity Q39814
relation P47
type Q15617994
[ANSWERS] are adjacent to Czechoslovakia or Lovero
{'OR': [['Q33946', 'P47', {'concept': 'Q15617994'}], ['Q39814', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . { { resource:Q33946 property:P47 ?u } UNION { resource:Q39814 property:P47 ?u } } }
Ukraine Sernio Tovo di Sant'Agata Romania Vervio Poland Hungary Edolo
Ukraine, Sernio, Tovo di Sant'Agata, Romania, Vervio, Poland, Hungary and Edolo are adjacent to Czechoslovakia or Lovero
Ukraine Sernio Tovo di Sant'Agata Romania Vervio Poland Hungary Edolo
action filter_type
action union
action find
entity Czechoslovakia
relation shares border with
action find
entity Lovero
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Czechoslovakia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Lovero', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Czechoslovakia property:shares_border_with ?u } UNION { resource:Lovero property:shares_border_with ?u } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P36
Q515 Q20667921 Q7275
USER
Which states consists of max number of cities or french administrative divisions as their capital ?
(c(Q7275),P36,c(Q515)|c(Q20667921))
action argmax
action union
action find_tuple_counts
relation P36
type Q7275
type Q515
action find_tuple_counts
relation P36
type Q7275
type Q20667921
[{'concept': 'Q7275'}, 'P36', [{'concept': 'Q515'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) ?m WHERE { VALUES ( ?a ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } . ?c rdf:type ?a } GROUP BY ?m } . FILTER ( ?b = ?y ) . { SELECT DISTINCT ( MAX ( ?t ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) ?s WHERE { ?u rdf:type ?z . VALUES ( ?z ) { ( ontology:Q20667921 ) ( ontology:Q515 ) } } GROUP BY ?s } } }
action argmax
action union
action find_tuple_counts
relation capital
type state
type city
action find_tuple_counts
relation capital
type state
type type of french administrative division
[{'concept': 'state'}, 'capital', [{'concept': 'city'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) ?m WHERE { VALUES ( ?a ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } . ?c rdf:type ?a } GROUP BY ?m } . FILTER ( ?b = ?y ) . { SELECT DISTINCT ( MAX ( ?t ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) ?s WHERE { ?u rdf:type ?z . VALUES ( ?z ) { ( ontology:type_of_french_administrative_division ) ( ontology:city ) } } GROUP BY ?s } } }
[]
city type of french administrative division state
Q13426199
SYSTEM
Republic of China
Q13426199
(c(Q7275),P36,c(Q515)|c(Q20667921))
action argmax
action union
action find_tuple_counts
relation P36
type Q7275
type Q515
action find_tuple_counts
relation P36
type Q7275
type Q20667921
[ANSWER] consists of max number of cities or french administrative divisions as their capital
[{'concept': 'Q7275'}, 'P36', [{'concept': 'Q515'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) ?m WHERE { VALUES ( ?a ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } . ?c rdf:type ?a } GROUP BY ?m } . FILTER ( ?b = ?y ) . { SELECT DISTINCT ( MAX ( ?t ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) ?s WHERE { ?u rdf:type ?z . VALUES ( ?z ) { ( ontology:Q20667921 ) ( ontology:Q515 ) } } GROUP BY ?s } } }
Republic of China
Republic of China consists of max number of cities or french administrative divisions as their capital
Republic of China
action argmax
action union
action find_tuple_counts
relation capital
type state
type city
action find_tuple_counts
relation capital
type state
type type of french administrative division
[{'concept': 'state'}, 'capital', [{'concept': 'city'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) ?m WHERE { VALUES ( ?a ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } . ?c rdf:type ?a } GROUP BY ?m } . FILTER ( ?b = ?y ) . { SELECT DISTINCT ( MAX ( ?t ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) ?s WHERE { ?u rdf:type ?z . VALUES ( ?z ) { ( ontology:type_of_french_administrative_division ) ( ontology:city ) } } GROUP BY ?s } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7682348 Q104585
P17
Q15617994
USER
Which administrative territories are Edolo or Tanbark present in ?
OR((Q104585,P17,c(Q15617994)), (Q7682348,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q104585
relation P17
action find
entity Q7682348
relation P17
type Q15617994
{'OR': [['Q104585', 'P17', {'concept': 'Q15617994'}], ['Q7682348', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q104585 property:P17 ?n } UNION { resource:Q7682348 property:P17 ?n } } . ?n rdf:type ontology:Q15617994 }
Tanbark Edolo
action filter_type
action union
action find
entity Edolo
relation country
action find
entity Tanbark
relation country
type designation for an administrative territorial entity
{'OR': [['Edolo', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Tanbark', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Edolo property:country ?n } UNION { resource:Tanbark property:country ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q30
SYSTEM
Italy, United States of America
Q38 Q30
OR((Q104585,P17,c(Q15617994)), (Q7682348,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q104585
relation P17
action find
entity Q7682348
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q104585', 'P17', {'concept': 'Q15617994'}], ['Q7682348', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q104585 property:P17 ?n } UNION { resource:Q7682348 property:P17 ?n } } . ?n rdf:type ontology:Q15617994 }
Italy United States of America
Which administrative territories are Edolo or Tanbark present in
Italy United States of America
action filter_type
action union
action find
entity Edolo
relation country
action find
entity Tanbark
relation country
type designation for an administrative territorial entity
{'OR': [['Edolo', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Tanbark', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Edolo property:country ?n } UNION { resource:Tanbark property:country ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]