Simple Question (Direct)
Simple Question
Q5200664
P27
Q15617994
USER
Which administrative territory is Cyril Chami a civilian of ?
(Q5200664,P27,c(Q15617994))
action filter_type
action find
entity Q5200664
relation P27
type Q15617994
['Q5200664', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q5200664 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Cyril Chami
action filter_type
action find
entity Cyril Chami
relation country of citizenship
type designation for an administrative territorial entity
['Cyril Chami', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Cyril_Chami property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q924
SYSTEM
Tanzania
Q924
(Q5200664,P27,c(Q15617994))
action filter_type
action find
entity Q5200664
relation P27
type Q15617994
[ANSWER] is Cyril Chami a civilian of
['Q5200664', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q5200664 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Tanzania
Tanzania is Cyril Chami a civilian of
Tanzania
action filter_type
action find
entity Cyril Chami
relation country of citizenship
type designation for an administrative territorial entity
['Cyril Chami', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Cyril_Chami property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5200664
P19
Q7275
USER
Which state is the birthplace of that person ?
(Q924,P19,c(Q7275))
action filter_type
action find
entity Q5200664
relation P19
type Q7275
['Q924', 'P19', {'concept': 'Q7275'}]
SELECT DISTINCT ?q WHERE { resource:Q5200664 property:P19 ?q . ?q rdf:type ontology:Q7275 }
Cyril Chami
action filter_type
action find
entity Cyril Chami
relation place of birth
type state
['Tanzania', 'place of birth', {'concept': 'state'}]
SELECT DISTINCT ?q WHERE { resource:Cyril_Chami property:place_of_birth ?q . ?q rdf:type ontology:state }
[]
state
Q431731
SYSTEM
Tanganyika
Q431731
(Q924,P19,c(Q7275))
action filter_type
action find
entity Q5200664
relation P19
type Q7275
[ANSWER] is the birthplace of that person
['Q924', 'P19', {'concept': 'Q7275'}]
SELECT DISTINCT ?q WHERE { resource:Q5200664 property:P19 ?q . ?q rdf:type ontology:Q7275 }
Tanganyika
Tanganyika is the birthplace of that person
Tanganyika
action filter_type
action find
entity Cyril Chami
relation place of birth
type state
['Tanzania', 'place of birth', {'concept': 'state'}]
SELECT DISTINCT ?q WHERE { resource:Cyril_Chami property:place_of_birth ?q . ?q rdf:type ontology:state }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P85
Q7725634 Q484692 Q7275
USER
Which states have an anthem named atmost 1 literary works and hymns ?
(c(Q7275),P85,c(Q7725634)|c(Q484692))
action atmost
action union
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action find_tuple_counts
relation P85
type Q7275
type Q484692
value 1
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?i WHERE { FILTER ( ?n <= 1 ) . { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?n ) WHERE { { ?i property:P85 ?j . ?i rdf:type ontology:Q7275 . ?j rdf:type ontology:Q7725634 } UNION { ?i property:P85 ?j . ?i rdf:type ontology:Q7275 . ?j rdf:type ontology:Q484692 } } GROUP BY ?i } }
action atmost
action union
action find_tuple_counts
relation anthem
type state
type literary work
action find_tuple_counts
relation anthem
type state
type hymn
value 1
[{'concept': 'state'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?i WHERE { FILTER ( ?n <= 1 ) . { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?n ) WHERE { { ?i property:anthem ?j . ?i rdf:type ontology:state . ?j rdf:type ontology:literary_work } UNION { ?i property:anthem ?j . ?i rdf:type ontology:state . ?j rdf:type ontology:hymn } } GROUP BY ?i } }
[]
literary work hymn state
Q33946 Q980 Q16957
SYSTEM
Czechoslovakia, Bavaria, East Germany
Q241748 Q211853 Q180573 Q70802 Q842931 Q797527 Q1274468 Q2414171 Q218023 Q245160 Q25279 Q174193 Q965174 Q233263 Q1028835 Q330988 Q139670 Q27306 Q457167 Q533558 Q167360 Q1044536 Q209065 Q21203 Q713750 Q209062 Q1998866 Q207162 Q11196 Q2006542 Q131964 Q133356 Q2454585 Q33946 Q83572 Q191077 Q2638486 Q28278 Q16957 Q1649871 Q941881 Q870055 Q842794 Q1057542 Q652560 Q550374 Q178038 Q30623 Q203493 Q867778 Q147909 Q980 Q58202 Q1709185 Q154401 Q180393 Q112558 Q252580 Q518101 Q37024 Q16410 Q153128 Q83286 Q210036 Q173761 Q207272 Q25227 Q797214 Q15864 Q738144 Q36704 Q950644 Q153015 Q49910 Q386496 Q696242 Q71092 Q217230 Q4843701 Q170072 Q170174 Q212056 Q210542 Q7318 Q1072140 Q170468 Q146328 Q248452 Q8733 Q58296 Q371334 Q853348 Q824489 Q2342822 Q189988 Q1192936 Q615902 Q708865 Q498735 Q837136 Q491559 Q154195 Q1072362 Q1775277 Q121932 Q146761 Q153660 Q769782 Q70972 Q497777 Q13131807 Q206411 Q12548 Q211274 Q6500954 Q26988 Q26273 Q139319 Q171150 Q487687 Q370736 Q541455 Q41304 Q797422 Q216173 Q178469
(c(Q7275),P85,c(Q7725634)|c(Q484692))
action atmost
action union
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action find_tuple_counts
relation P85
type Q7275
type Q484692
value 1
[ANSWERS] have an anthem named atmost 1 literary works and hymns
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?i WHERE { FILTER ( ?n <= 1 ) . { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?n ) WHERE { { ?i property:P85 ?j . ?i rdf:type ontology:Q7275 . ?j rdf:type ontology:Q7725634 } UNION { ?i property:P85 ?j . ?i rdf:type ontology:Q7275 . ?j rdf:type ontology:Q484692 } } GROUP BY ?i } }
Kingdom of Serbia Republic of Serbian Krajina South Vietnam French Third Republic East Pakistan British Togoland Republic of Bosnia and Herzegovina First Brazilian Republic Orange Free State Democratic Republic of Georgia Curaçao United Kingdom of Great Britain and Ireland Coalition Provisional Authority Second Republic of South Korea British Cameroons Democratic Kampuchea Democratic Republic of Armenia Kingdom of Prussia West Ukrainian People's Republic Kingdom of Croatia-Slavonia First Portuguese Republic Spain under the Restoration Kingdom of Greece Aruba West Germany Socialist Republic of Croatia Czech and Slovak Federal Republic Bourbon Restoration Republika Srpska Dominion of Pakistan Austrian Empire Ukrainian Soviet Socialist Republic History of Czechoslovakia Czechoslovakia Sikh Empire Kingdom of Yugoslavia Kingdom of Cambodia Provisional Government of the Republic of Korea East Germany Kingdom of Poland Netherlands New Guinea Kingdom of Laos Socialist Republic of Romania Republic of Hawaii West Indies Federation South African Republic Second Spanish Republic Manchukuo Kingdom of Romania People's Republic of Kampuchea Kingdom of Bulgaria Bavaria July Monarchy Kingdom of Spain under Joseph Bonaparte Slovak Republic Kingdom of the Two Sicilies Republic of Saugeais Duchy of Modena and Reggio First Republic of Austria Serbia and Montenegro People's Republic of Hungary Independent State of Croatia Socialist Federal Republic of Yugoslavia Chechen Republic of Ichkeria Lithuanian Soviet Socialist Republic Second Polish Republic Netherlands Antilles French Togoland United Kingdom of the Netherlands United Provinces of the Río de la Plata Yugoslavia Carpatho-Ukraine Kingdom of Saxony Colony of Aden Kingdom of Montenegro Reorganized National Government of China Second French Empire Empire of Brazil Libyan Arab Jamahiriya Dutch Republic Papal States Mongolian People's Republic Second Brazilian Republic Nazi Germany Roman Republic United Arab Republic Commonwealth of the Philippines British North America Qing dynasty French Republic Second Mexican Empire Czechoslovak Socialist Republic Estado Novo West Pakistan Central African Empire Kingdom of Burundi Kingdom of Finland Reformed Government of the Republic of China division of Korea Kingdom of Deheubarth First Republic of South Korea Kingdom of Bavaria Provisional Revolutionary Government of the Republic of South Vietnam Dominion of India People's Republic of Bulgaria Hatay State Italian Social Republic Kingdom of Powys Kingdom of France First Spanish Republic Kindom of Morgannwg Democratic Republic of Azerbaijan Holy Roman Empire People's Republic of Poland Zaire Cook Islands Sint Maarten Russian Republic Kingdom of Hungary Third Republic of South Korea Cape Colony Anglo-Egyptian Sudan Weimar Republic Republic of Upper Volta Free City of Danzig Biafra
Czechoslovakia, Bavaria and East Germany have an anthem named atmost 1 literary works and hymns
Czechoslovakia Bavaria East Germany
action atmost
action union
action find_tuple_counts
relation anthem
type state
type literary work
action find_tuple_counts
relation anthem
type state
type hymn
value 1
[{'concept': 'state'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?i WHERE { FILTER ( ?n <= 1 ) . { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?n ) WHERE { { ?i property:anthem ?j . ?i rdf:type ontology:state . ?j rdf:type ontology:literary_work } UNION { ?i property:anthem ?j . ?i rdf:type ontology:state . ?j rdf:type ontology:hymn } } GROUP BY ?i } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P35
Q502895 Q7275
USER
How many states are headed by lesser number of people than that state ?
(c(Q7275),P35,c(Q502895))
[{'concept': 'Q7275'}, 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q48352 ?y . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q502895 }
[{'concept': 'state'}, 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:head_of_state ?y . ?z rdf:type ontology:state . ?y rdf:type ontology:common_name }
[]
common name state
Comparative|Count over More/Less|Single entity type|Clarification
Q980
SYSTEM
Did you mean Bavaria ?
(c(Q7275),P35,c(Q502895))
[ANSWER]
[{'concept': 'Q7275'}, 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q48352 ?y . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q502895 }
Did you mean Bavaria ?
Bavaria
[{'concept': 'state'}, 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:head_of_state ?y . ?z rdf:type ontology:state . ?y rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant East Germany. Could you tell me the answer for that?
(c(Q7275),P35,c(Q502895))
Q16957
[{'concept': 'Q7275'}, 'P35', {'concept': 'Q502895'}]
[{'concept': 'state'}, 'head of state', {'concept': 'common name'}]
[]
SYSTEM
31
Q6083755 Q7382038 Q271570 Q147909 Q18285930 Q13706 Q25279 Q15180 Q6412664 Q27260 Q580188 Q330988 Q150981 Q2353425 Q1709185 Q112558 Q153943 Q7318 Q28233 Q1083009 Q21203 Q175379 Q107299 Q26273 Q551798 Q19801186 Q1277557 Q11876909 Q41304 Q744042 Q131964
(c(Q7275),P35,c(Q502895))
[ANSWER]
[{'concept': 'Q7275'}, 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q48352 ?y . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q502895 }
Islands of Refreshment Imperial Throne Kingdom of Araucanía and Patagonia Kingdom of Bulgaria German Empire of 1848/1849 Principality of Sealand Curaçao Soviet Union Realm of Stefan Dragutin Samma dynasty Mutawakkilite Kingdom of Yemen Democratic Kampuchea North German Confederation Talossa Kingdom of Spain under Joseph Bonaparte Republic of Saugeais Kingdom of Westphalia Nazi Germany Korean Empire Principality of Wy Aruba Empire of China Kingdom of Northumbria Sint Maarten Grand Duchy of Flandrensis Liberland Democratic Federal Yugoslavia State of Brazil Weimar Republic Grand Duchy of Avram Austrian Empire
31
[{'concept': 'state'}, 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:head_of_state ?y . ?z rdf:type ontology:state . ?y rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q55192
P608
Q1656682 Q464980 Q502895
USER
Which people were displayed at greater number of events and exhibitions than Gertrude Abercrombie ?
(c(Q502895),P608,c(Q1656682)|c(Q464980))
action greater
action union
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action find_tuple_counts
relation P608
type Q502895
type Q464980
action count
action filter_multi_types
action find
entity Q55192
relation P608
type Q1656682
type Q464980
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q1656682'}, {'concept': 'Q464980'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?y ) WHERE { { ?n property:P608 ?j . ?n rdf:type ontology:Q502895 . ?j rdf:type ontology:Q1656682 } UNION { ?n property:P608 ?j . ?n rdf:type ontology:Q502895 . ?j rdf:type ontology:Q464980 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { resource:Q55192 property:P608 ?b . { VALUES ( ?z ) { ( ontology:Q1656682 ) ( ontology:Q464980 ) } . ?b rdf:type ?z } } } . FILTER ( ?y > ?w ) }
Gertrude Abercrombie
action greater
action union
action find_tuple_counts
relation exhibition history
type common name
type event
action find_tuple_counts
relation exhibition history
type common name
type exhibition
action count
action filter_multi_types
action find
entity Gertrude Abercrombie
relation exhibition history
type event
type exhibition
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'event'}, {'concept': 'exhibition'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?y ) WHERE { { ?n property:exhibition_history ?j . ?n rdf:type ontology:common_name . ?j rdf:type ontology:event } UNION { ?n property:exhibition_history ?j . ?n rdf:type ontology:common_name . ?j rdf:type ontology:exhibition } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { resource:Gertrude_Abercrombie property:exhibition_history ?b . { VALUES ( ?z ) { ( ontology:event ) ( ontology:exhibition ) } . ?b rdf:type ?z } } } . FILTER ( ?y > ?w ) }
[]
event exhibition common name
Q17455385 Q3335569 Q20888837
SYSTEM
Jerry Cooke, Nancy Elizabeth Prophet, Angélique Bègue
Q70006 Q17455385 Q16062545 Q20888837 Q22815085 Q3335569
(c(Q502895),P608,c(Q1656682)|c(Q464980))
action greater
action union
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action find_tuple_counts
relation P608
type Q502895
type Q464980
action count
action filter_multi_types
action find
entity Q55192
relation P608
type Q1656682
type Q464980
[ANSWERS] were displayed at greater number of events and exhibitions than Gertrude Abercrombie
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q1656682'}, {'concept': 'Q464980'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?y ) WHERE { { ?n property:P608 ?j . ?n rdf:type ontology:Q502895 . ?j rdf:type ontology:Q1656682 } UNION { ?n property:P608 ?j . ?n rdf:type ontology:Q502895 . ?j rdf:type ontology:Q464980 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { resource:Q55192 property:P608 ?b . { VALUES ( ?z ) { ( ontology:Q1656682 ) ( ontology:Q464980 ) } . ?b rdf:type ?z } } } . FILTER ( ?y > ?w ) }
Lotte Jacobi Jerry Cooke Alice Havers Angélique Bègue Georges Violet Nancy Elizabeth Prophet
Jerry Cooke, Nancy Elizabeth Prophet and Angélique Bègue were displayed at greater number of events and exhibitions than Gertrude Abercrombie
Jerry Cooke Nancy Elizabeth Prophet Angélique Bègue
action greater
action union
action find_tuple_counts
relation exhibition history
type common name
type event
action find_tuple_counts
relation exhibition history
type common name
type exhibition
action count
action filter_multi_types
action find
entity Gertrude Abercrombie
relation exhibition history
type event
type exhibition
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'event'}, {'concept': 'exhibition'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?y ) WHERE { { ?n property:exhibition_history ?j . ?n rdf:type ontology:common_name . ?j rdf:type ontology:event } UNION { ?n property:exhibition_history ?j . ?n rdf:type ontology:common_name . ?j rdf:type ontology:exhibition } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { resource:Gertrude_Abercrombie property:exhibition_history ?b . { VALUES ( ?z ) { ( ontology:event ) ( ontology:exhibition ) } . ?b rdf:type ?z } } } . FILTER ( ?y > ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q16968866
P608
Q1656682 Q464980 Q502895
USER
And what about Lydia Schouten?
(c(Q502895),P608,c(Q1656682)|c(Q464980))
action greater
action union
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action find_tuple_counts
relation P608
type Q502895
type Q464980
action count
action filter_multi_types
action find
entity Q16968866
relation P608
type Q1656682
type Q464980
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q1656682'}, {'concept': 'Q464980'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?t ) WHERE { { ?h rdf:type ontology:Q464980 . ?b rdf:type ontology:Q502895 . ?b property:P608 ?h } UNION { ?b property:P608 ?h . ?h rdf:type ontology:Q1656682 . ?b rdf:type ontology:Q502895 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { resource:Q16968866 property:P608 ?l . { { ?l rdf:type ontology:Q1656682 } UNION { ?l rdf:type ontology:Q464980 } } } } . FILTER ( ?t > ?z ) }
Lydia Schouten
action greater
action union
action find_tuple_counts
relation exhibition history
type common name
type event
action find_tuple_counts
relation exhibition history
type common name
type exhibition
action count
action filter_multi_types
action find
entity Lydia Schouten
relation exhibition history
type event
type exhibition
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'event'}, {'concept': 'exhibition'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?t ) WHERE { { ?h rdf:type ontology:exhibition . ?b rdf:type ontology:common_name . ?b property:exhibition_history ?h } UNION { ?b property:exhibition_history ?h . ?h rdf:type ontology:event . ?b rdf:type ontology:common_name } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { resource:Lydia_Schouten property:exhibition_history ?l . { { ?l rdf:type ontology:event } UNION { ?l rdf:type ontology:exhibition } } } } . FILTER ( ?t > ?z ) }
[]
event exhibition common name
Q17455385 Q3335569 Q20888837
SYSTEM
Jerry Cooke, Nancy Elizabeth Prophet, Angélique Bègue
Q70006 Q17455385 Q16062545 Q20888837 Q22815085 Q3335569
(c(Q502895),P608,c(Q1656682)|c(Q464980))
action greater
action union
action find_tuple_counts
relation P608
type Q502895
type Q1656682
action find_tuple_counts
relation P608
type Q502895
type Q464980
action count
action filter_multi_types
action find
entity Q16968866
relation P608
type Q1656682
type Q464980
[ANSWERS]
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q1656682'}, {'concept': 'Q464980'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?t ) WHERE { { ?h rdf:type ontology:Q464980 . ?b rdf:type ontology:Q502895 . ?b property:P608 ?h } UNION { ?b property:P608 ?h . ?h rdf:type ontology:Q1656682 . ?b rdf:type ontology:Q502895 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { resource:Q16968866 property:P608 ?l . { { ?l rdf:type ontology:Q1656682 } UNION { ?l rdf:type ontology:Q464980 } } } } . FILTER ( ?t > ?z ) }
Lotte Jacobi Jerry Cooke Alice Havers Angélique Bègue Georges Violet Nancy Elizabeth Prophet
Jerry Cooke Nancy Elizabeth Prophet Angélique Bègue
action greater
action union
action find_tuple_counts
relation exhibition history
type common name
type event
action find_tuple_counts
relation exhibition history
type common name
type exhibition
action count
action filter_multi_types
action find
entity Lydia Schouten
relation exhibition history
type event
type exhibition
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'event'}, {'concept': 'exhibition'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?t ) WHERE { { ?h rdf:type ontology:exhibition . ?b rdf:type ontology:common_name . ?b property:exhibition_history ?h } UNION { ?b property:exhibition_history ?h . ?h rdf:type ontology:event . ?b rdf:type ontology:common_name } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) WHERE { resource:Lydia_Schouten property:exhibition_history ?l . { { ?l rdf:type ontology:event } UNION { ?l rdf:type ontology:exhibition } } } } . FILTER ( ?t > ?z ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q980
P47
Q56061 Q1048835
USER
How many administrative territories and political territories have a shared border with Bavaria ?
(Q980,P47,c(Q56061)) (Q980,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q980
relation P47
type Q56061
action filter_type
action find
entity Q980
relation P47
type Q1048835
['Q980', 'P47', {'concept': 'Q56061'}] ['Q980', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { { resource:Q980 property:P47 ?l . ?l rdf:type ontology:Q1048835 } UNION { resource:Q980 property:P47 ?l . ?l rdf:type ontology:Q56061 } }
Bavaria
action count
action union
action filter_type
action find
entity Bavaria
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Bavaria
relation shares border with
type political territorial entity
['Bavaria', 'shares border with', {'concept': 'administrative territorial entity'}] ['Bavaria', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { { resource:Bavaria property:shares_border_with ?l . ?l rdf:type ontology:political_territorial_entity } UNION { resource:Bavaria property:shares_border_with ?l . ?l rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity political territorial entity
SYSTEM
1 administrative territories and 2 political territories
Q7899 Q131128 Q6337
(Q980,P47,c(Q56061)) (Q980,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q980
relation P47
type Q56061
action filter_type
action find
entity Q980
relation P47
type Q1048835
[ANSWER]
['Q980', 'P47', {'concept': 'Q56061'}] ['Q980', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { { resource:Q980 property:P47 ?l . ?l rdf:type ontology:Q1048835 } UNION { resource:Q980 property:P47 ?l . ?l rdf:type ontology:Q56061 } }
Fulda Braunau am Inn Vogtlandkreis
1 administrative territories and 2 political territories
action count
action union
action filter_type
action find
entity Bavaria
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Bavaria
relation shares border with
type political territorial entity
['Bavaria', 'shares border with', {'concept': 'administrative territorial entity'}] ['Bavaria', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { { resource:Bavaria property:shares_border_with ?l . ?l rdf:type ontology:political_territorial_entity } UNION { resource:Bavaria property:shares_border_with ?l . ?l rdf:type ontology:administrative_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q17455385
P21 P802
Q502895
USER
Which people were pupils of Jerry Cooke and are a male ?
AND((c(Q502895),P802,Q17455385), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q17455385
relation P802
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P802', 'Q17455385'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?o WHERE { ?o property:P21 resource:Q6581097 . ?o property:P802 resource:Q17455385 . ?o rdf:type ontology:Q502895 }
male Jerry Cooke
action filter_type
action intersection
action find_reverse
entity Jerry Cooke
relation student
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'student', 'Jerry Cooke'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?o WHERE { ?o property:gender resource:male . ?o property:student resource:Jerry_Cooke . ?o rdf:type ontology:common_name }
[]
common name
Q62081
SYSTEM
Alfred Eisenstaedt
Q62081
AND((c(Q502895),P802,Q17455385), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q17455385
relation P802
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] was pupils of Jerry Cooke and are a male
{'AND': [[{'concept': 'Q502895'}, 'P802', 'Q17455385'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?o WHERE { ?o property:P21 resource:Q6581097 . ?o property:P802 resource:Q17455385 . ?o rdf:type ontology:Q502895 }
Alfred Eisenstaedt
Alfred Eisenstaedt was pupils of Jerry Cooke and are a male
Alfred Eisenstaedt
action filter_type
action intersection
action find_reverse
entity Jerry Cooke
relation student
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'student', 'Jerry Cooke'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?o WHERE { ?o property:gender resource:male . ?o property:student resource:Jerry_Cooke . ?o rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q62081 Q1860
P1412
Q34770
USER
Does English can Alfred Eisenstaedt understand ?
(Q62081,P1412,Q1860)
action is_in
entity Q1860
action find
entity Q62081
relation P1412
['Q62081', 'P1412', 'Q1860']
ASK WHERE { resource:Q62081 property:P1412 resource:Q1860 }
Alfred Eisenstaedt English
action is_in
entity English
action find
entity Alfred Eisenstaedt
relation languages spoken, written or signed
['Alfred Eisenstaedt', 'languages spoken, written or signed', 'English']
ASK WHERE { resource:Alfred_Eisenstaedt property:languages_spoken,_written_or_signed resource:English }
[]
language
SYSTEM
YES
(Q62081,P1412,Q1860)
action is_in
entity Q1860
action find
entity Q62081
relation P1412
[ANSWER]
['Q62081', 'P1412', 'Q1860']
ASK WHERE { resource:Q62081 property:P1412 resource:Q1860 }
Yes
action is_in
entity English
action find
entity Alfred Eisenstaedt
relation languages spoken, written or signed
['Alfred Eisenstaedt', 'languages spoken, written or signed', 'English']
ASK WHERE { resource:Alfred_Eisenstaedt property:languages_spoken,_written_or_signed resource:English }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q62081
P1066
Q502895
USER
Which person is a pupil of Alfred Eisenstaedt ?
(c(Q502895),P1066,Q62081)
action filter_type
action find_reverse
entity Q62081
relation P1066
type Q502895
[{'concept': 'Q502895'}, 'P1066', 'Q62081']
SELECT DISTINCT ?n WHERE { ?n property:P1066 resource:Q62081 . ?n rdf:type ontology:Q502895 }
Alfred Eisenstaedt
action filter_type
action find_reverse
entity Alfred Eisenstaedt
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Alfred Eisenstaedt']
SELECT DISTINCT ?n WHERE { ?n property:student_of resource:Alfred_Eisenstaedt . ?n rdf:type ontology:common_name }
[]
common name
Q17455385
SYSTEM
Jerry Cooke
Q17455385
(c(Q502895),P1066,Q62081)
action filter_type
action find_reverse
entity Q62081
relation P1066
type Q502895
[ANSWER] is a pupil of Alfred Eisenstaedt
[{'concept': 'Q502895'}, 'P1066', 'Q62081']
SELECT DISTINCT ?n WHERE { ?n property:P1066 resource:Q62081 . ?n rdf:type ontology:Q502895 }
Jerry Cooke
Jerry Cooke is a pupil of Alfred Eisenstaedt
Jerry Cooke
action filter_type
action find_reverse
entity Alfred Eisenstaedt
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Alfred Eisenstaedt']
SELECT DISTINCT ?n WHERE { ?n property:student_of resource:Alfred_Eisenstaedt . ?n rdf:type ontology:common_name }
[]