Simple Question (Direct)
Simple Question
Q102814
P607
Q198
USER
What was the war that Guido von Mengden took part in
(Q102814,P607,c(Q198))
action filter_type
action find
entity Q102814
relation P607
type Q198
['Q102814', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?s WHERE { resource:Q102814 property:P607 ?s . ?s rdf:type ontology:Q198 }
Guido von Mengden
action filter_type
action find
entity Guido von Mengden
relation conflict
type war
['Guido von Mengden', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?s WHERE { resource:Guido_von_Mengden property:conflict ?s . ?s rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q102814,P607,c(Q198))
action filter_type
action find
entity Q102814
relation P607
type Q198
The war that Guido von Mengden took part in was during [ANSWER]
['Q102814', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?s WHERE { resource:Q102814 property:P607 ?s . ?s rdf:type ontology:Q198 }
World War I
The war that Guido von Mengden took part in was during World War I
World War I
action filter_type
action find
entity Guido von Mengden
relation conflict
type war
['Guido von Mengden', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?s WHERE { resource:Guido_von_Mengden property:conflict ?s . ?s rdf:type ontology:war }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q102814
P102
Q7210356
USER
Which political organization is Guido von Mengden a member of ?
(Q102814,P102,c(Q7210356))
action filter_type
action find
entity Q102814
relation P102
type Q7210356
['Q102814', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q7210356 . resource:Q102814 property:P102 ?k }
Guido von Mengden
action filter_type
action find
entity Guido von Mengden
relation member of political party
type political organization
['Guido von Mengden', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:political_organization . resource:Guido_von_Mengden property:member_of_political_party ?k }
[]
political organization
Q7320
SYSTEM
Nazi Party
Q7320
(Q102814,P102,c(Q7210356))
action filter_type
action find
entity Q102814
relation P102
type Q7210356
Germany [ANSWER] is Guido von Mengden a member of
['Q102814', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q7210356 . resource:Q102814 property:P102 ?k }
Nazi Party
Germany Nazi Party is Guido von Mengden a member of
Nazi Party
action filter_type
action find
entity Guido von Mengden
relation member of political party
type political organization
['Guido von Mengden', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:political_organization . resource:Guido_von_Mengden property:member_of_political_party ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q102814
P19
Q56061
USER
Which administrative territory is the birthplace of Guido von Mengden ?
(Q102814,P19,c(Q56061))
action filter_type
action find
entity Q102814
relation P19
type Q56061
['Q102814', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q102814 property:P19 ?f . ?f rdf:type ontology:Q56061 }
Guido von Mengden
action filter_type
action find
entity Guido von Mengden
relation place of birth
type administrative territorial entity
['Guido von Mengden', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Guido_von_Mengden property:place_of_birth ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1884
SYSTEM
Düren
Q1884
(Q102814,P19,c(Q56061))
action filter_type
action find
entity Q102814
relation P19
type Q56061
[ANSWER] is the birthplace of Guido von Mengden
['Q102814', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q102814 property:P19 ?f . ?f rdf:type ontology:Q56061 }
Düren
Düren is the birthplace of Guido von Mengden
Düren
action filter_type
action find
entity Guido von Mengden
relation place of birth
type administrative territorial entity
['Guido von Mengden', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Guido_von_Mengden property:place_of_birth ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1884
P47
Q15617994
USER
Which administrative territories have a shared border with that administrative territory ?
(Q1884,P47,c(Q15617994))
action filter_type
action find
entity Q1884
relation P47
type Q15617994
['Q1884', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q1884 property:P47 ?a }
Düren
action filter_type
action find
entity Düren
relation shares border with
type designation for an administrative territorial entity
['Düren', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Düren property:shares_border_with ?a }
[]
designation for an administrative territorial entity
Q199974 Q200018 Q200059
SYSTEM
Hürtgenwald, Langerwehe, Niederzier
Q200059 Q199977 Q199988 Q199974 Q200044 Q200018 Q200068
(Q1884,P47,c(Q15617994))
action filter_type
action find
entity Q1884
relation P47
type Q15617994
[ANSWERS] have a shared border with that administrative territory
['Q1884', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q1884 property:P47 ?a }
Niederzier Inden Kreuzau Hürtgenwald Merzenich Langerwehe Nörvenich
Hürtgenwald, Langerwehe and Niederzier have a shared border with that administrative territory
Hürtgenwald Langerwehe Niederzier
action filter_type
action find
entity Düren
relation shares border with
type designation for an administrative territorial entity
['Düren', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Düren property:shares_border_with ?a }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q105399
Q15617994
USER
And what about Orzinuovi?
(Q105399,P47,c(Q15617994))
action filter_type
action find
entity Q105399
relation P47
type Q15617994
['Q105399', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q105399 property:P47 ?e . ?e rdf:type ontology:Q15617994 }
Orzinuovi
action filter_type
action find
entity Orzinuovi
relation shares border with
type designation for an administrative territorial entity
['Orzinuovi', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Orzinuovi property:shares_border_with ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q42936 Q111606 Q103487
SYSTEM
Soncino, Roccafranca, Barbariga, Lombardy
Q111420 Q112203 Q111723 Q42936 Q103487 Q101657 Q105407 Q111606
(Q105399,P47,c(Q15617994))
action filter_type
action find
entity Q105399
relation P47
type Q15617994
[ANSWERS]
['Q105399', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q105399 property:P47 ?e . ?e rdf:type ontology:Q15617994 }
Pompiano Villachiara San Paolo Soncino Barbariga, Lombardy Torre Pallavicina Orzivecchi Roccafranca
Soncino Roccafranca Barbariga, Lombardy
action filter_type
action find
entity Orzinuovi
relation shares border with
type designation for an administrative territorial entity
['Orzinuovi', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Orzinuovi property:shares_border_with ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q958
P122
Q43229 Q4164871 Q15617994
USER
Which administrative territories have greater number of organizations and positions as the form of government than South Sudan ?
(c(Q15617994),P122,c(Q43229)|c(Q4164871))
action greater
action union
action find_tuple_counts
relation P122
type Q15617994
type Q43229
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action count
action filter_multi_types
action find
entity Q958
relation P122
type Q43229
type Q4164871
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q43229'}, {'concept': 'Q4164871'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) ?z WHERE { { ?z property:P122 ?f . ?f rdf:type ontology:Q4164871 . ?z rdf:type ontology:Q15617994 } UNION { ?f rdf:type ontology:Q43229 . ?z rdf:type ontology:Q15617994 . ?z property:P122 ?f } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { resource:Q958 property:P122 ?b . { { ?b rdf:type ontology:Q43229 } UNION { ?b rdf:type ontology:Q4164871 } } } } . FILTER ( ?h > ?r ) }
South Sudan
action greater
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action count
action filter_multi_types
action find
entity South Sudan
relation basic form of government
type organization
type position
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'organization'}, {'concept': 'position'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) ?z WHERE { { ?z property:basic_form_of_government ?f . ?f rdf:type ontology:position . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?f rdf:type ontology:organization . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z property:basic_form_of_government ?f } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { resource:South_Sudan property:basic_form_of_government ?b . { { ?b rdf:type ontology:organization } UNION { ?b rdf:type ontology:position } } } } . FILTER ( ?h > ?r ) }
[]
organization position designation for an administrative territorial entity
Q238 Q313175 Q696651
SYSTEM
San Marino, Saxe-Lauenburg, Saxe-Eisenach
Q238 Q313175 Q696651
(c(Q15617994),P122,c(Q43229)|c(Q4164871))
action greater
action union
action find_tuple_counts
relation P122
type Q15617994
type Q43229
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action count
action filter_multi_types
action find
entity Q958
relation P122
type Q43229
type Q4164871
[ANSWERS] have greater number of organizations and positions as the form of government than South Sudan
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q43229'}, {'concept': 'Q4164871'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) ?z WHERE { { ?z property:P122 ?f . ?f rdf:type ontology:Q4164871 . ?z rdf:type ontology:Q15617994 } UNION { ?f rdf:type ontology:Q43229 . ?z rdf:type ontology:Q15617994 . ?z property:P122 ?f } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { resource:Q958 property:P122 ?b . { { ?b rdf:type ontology:Q43229 } UNION { ?b rdf:type ontology:Q4164871 } } } } . FILTER ( ?h > ?r ) }
San Marino Saxe-Lauenburg Saxe-Eisenach
San Marino, Saxe-Lauenburg and Saxe-Eisenach have greater number of organizations and positions as the form of government than South Sudan
San Marino Saxe-Lauenburg Saxe-Eisenach
action greater
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action count
action filter_multi_types
action find
entity South Sudan
relation basic form of government
type organization
type position
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'organization'}, {'concept': 'position'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) ?z WHERE { { ?z property:basic_form_of_government ?f . ?f rdf:type ontology:position . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?f rdf:type ontology:organization . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z property:basic_form_of_government ?f } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { resource:South_Sudan property:basic_form_of_government ?b . { { ?b rdf:type ontology:organization } UNION { ?b rdf:type ontology:position } } } } . FILTER ( ?h > ?r ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q34
P122
Q43229 Q4164871 Q15617994
USER
And what about Sweden?
(c(Q15617994),P122,c(Q43229)|c(Q4164871))
action greater
action union
action find_tuple_counts
relation P122
type Q15617994
type Q43229
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action count
action filter_multi_types
action find
entity Q34
relation P122
type Q43229
type Q4164871
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q43229'}, {'concept': 'Q4164871'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?e ) WHERE { VALUES ( ?s ) { ( ontology:Q43229 ) ( ontology:Q4164871 ) } . ?g rdf:type ?s } GROUP BY ?j } . FILTER ( ?e > ?v ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { resource:Q34 property:P122 ?c . { { ?c rdf:type ontology:Q43229 } UNION { ?c rdf:type ontology:Q4164871 } } } } }
Sweden
action greater
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action count
action filter_multi_types
action find
entity Sweden
relation basic form of government
type organization
type position
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'organization'}, {'concept': 'position'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?e ) WHERE { VALUES ( ?s ) { ( ontology:organization ) ( ontology:position ) } . ?g rdf:type ?s } GROUP BY ?j } . FILTER ( ?e > ?v ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { resource:Sweden property:basic_form_of_government ?c . { { ?c rdf:type ontology:organization } UNION { ?c rdf:type ontology:position } } } } }
[]
organization position designation for an administrative territorial entity
Q238 Q313175 Q696651
SYSTEM
San Marino, Saxe-Lauenburg, Saxe-Eisenach
Q238 Q313175 Q696651
(c(Q15617994),P122,c(Q43229)|c(Q4164871))
action greater
action union
action find_tuple_counts
relation P122
type Q15617994
type Q43229
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action count
action filter_multi_types
action find
entity Q34
relation P122
type Q43229
type Q4164871
[ANSWERS]
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q43229'}, {'concept': 'Q4164871'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?e ) WHERE { VALUES ( ?s ) { ( ontology:Q43229 ) ( ontology:Q4164871 ) } . ?g rdf:type ?s } GROUP BY ?j } . FILTER ( ?e > ?v ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { resource:Q34 property:P122 ?c . { { ?c rdf:type ontology:Q43229 } UNION { ?c rdf:type ontology:Q4164871 } } } } }
San Marino Saxe-Lauenburg Saxe-Eisenach
San Marino Saxe-Lauenburg Saxe-Eisenach
action greater
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action count
action filter_multi_types
action find
entity Sweden
relation basic form of government
type organization
type position
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'organization'}, {'concept': 'position'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?e ) WHERE { VALUES ( ?s ) { ( ontology:organization ) ( ontology:position ) } . ?g rdf:type ?s } GROUP BY ?j } . FILTER ( ?e > ?v ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { resource:Sweden property:basic_form_of_government ?c . { { ?c rdf:type ontology:organization } UNION { ?c rdf:type ontology:position } } } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q853858 Q696651
P1376
Q515
USER
Which cities are the capital of Saxe-Eisenach or Hódmezővásárhely  District ?
OR((c(Q515),P1376,Q696651), (c(Q515),P1376,Q853858))
action filter_type
action union
action find_reverse
entity Q696651
relation P1376
action find_reverse
entity Q853858
relation P1376
type Q515
{'OR': [[{'concept': 'Q515'}, 'P1376', 'Q696651'], [{'concept': 'Q515'}, 'P1376', 'Q853858']]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?f ) { ( resource:Q696651 ) ( resource:Q853858 ) } . ?z property:P1376 ?f } . ?z rdf:type ontology:Q515 }
Hódmezővásárhely  District Saxe-Eisenach
action filter_type
action union
action find_reverse
entity Saxe-Eisenach
relation capital of
action find_reverse
entity Hódmezővásárhely  District
relation capital of
type city
{'OR': [[{'concept': 'city'}, 'capital of', 'Saxe-Eisenach'], [{'concept': 'city'}, 'capital of', 'Hódmezővásárhely  District']]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?f ) { ( resource:Saxe-Eisenach ) ( resource:Hódmezővásárhely__District ) } . ?z property:capital_of ?f } . ?z rdf:type ontology:city }
[]
city
Q124375 Q7070
SYSTEM
Hódmezővásárhely, Eisenach
Q124375 Q7070
OR((c(Q515),P1376,Q696651), (c(Q515),P1376,Q853858))
action filter_type
action union
action find_reverse
entity Q696651
relation P1376
action find_reverse
entity Q853858
relation P1376
type Q515
[ANSWERS] are the capital of Saxe-Eisenach or Hódmezővásárhely District
{'OR': [[{'concept': 'Q515'}, 'P1376', 'Q696651'], [{'concept': 'Q515'}, 'P1376', 'Q853858']]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?f ) { ( resource:Q696651 ) ( resource:Q853858 ) } . ?z property:P1376 ?f } . ?z rdf:type ontology:Q515 }
Hódmezővásárhely Eisenach
Hódmezővásárhely and Eisenach are the capital of Saxe-Eisenach or Hódmezővásárhely District
Hódmezővásárhely Eisenach
action filter_type
action union
action find_reverse
entity Saxe-Eisenach
relation capital of
action find_reverse
entity Hódmezővásárhely  District
relation capital of
type city
{'OR': [[{'concept': 'city'}, 'capital of', 'Saxe-Eisenach'], [{'concept': 'city'}, 'capital of', 'Hódmezővásárhely  District']]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?f ) { ( resource:Saxe-Eisenach ) ( resource:Hódmezővásárhely__District ) } . ?z property:capital_of ?f } . ?z rdf:type ontology:city }
[]