Simple Question (Direct)
Simple Question
Q15423043
P39
Q12737077
USER
Which occupation was a position for which Gerhard Fritz was appointed ?
(Q15423043,P39,c(Q12737077))
action filter_type
action find
entity Q15423043
relation P39
type Q12737077
['Q15423043', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q15423043 property:P39 ?b . ?b rdf:type ontology:Q12737077 }
Gerhard Fritz
action filter_type
action find
entity Gerhard Fritz
relation position held
type occupation
['Gerhard Fritz', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Gerhard_Fritz property:position_held ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q1939555
SYSTEM
member of the German Bundestag
Q1939555
(Q15423043,P39,c(Q12737077))
action filter_type
action find
entity Q15423043
relation P39
type Q12737077
A [ANSWER] was a position for which Gerhard Fritz was appointed
['Q15423043', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q15423043 property:P39 ?b . ?b rdf:type ontology:Q12737077 }
member of the German Bundestag
A member of the German Bundestag was a position for which Gerhard Fritz was appointed
member of the German Bundestag
action filter_type
action find
entity Gerhard Fritz
relation position held
type occupation
['Gerhard Fritz', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Gerhard_Fritz property:position_held ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15423043
P20
Q15617994
USER
Where did Gerhard Fritz die ?
(Q15423043,P20,c(Q15617994))
action filter_type
action find
entity Q15423043
relation P20
type Q15617994
['Q15423043', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q15423043 property:P20 ?a }
Gerhard Fritz
action filter_type
action find
entity Gerhard Fritz
relation place of death
type designation for an administrative territorial entity
['Gerhard Fritz', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Gerhard_Fritz property:place_of_death ?a }
[]
designation for an administrative territorial entity
Q4090
SYSTEM
Sankt Augustin
Q4090
(Q15423043,P20,c(Q15617994))
action filter_type
action find
entity Q15423043
relation P20
type Q15617994
Gerhard Fritz died in [ANSWER]
['Q15423043', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q15423043 property:P20 ?a }
Sankt Augustin
Gerhard Fritz died in Sankt Augustin
Sankt Augustin
action filter_type
action find
entity Gerhard Fritz
relation place of death
type designation for an administrative territorial entity
['Gerhard Fritz', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Gerhard_Fritz property:place_of_death ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4090
P190
Q515
USER
Which city is sister town of that administrative territory ?
(Q4090,P190,c(Q515))
action filter_type
action find
entity Q4090
relation P190
type Q515
['Q4090', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { resource:Q4090 property:P190 ?z . ?z rdf:type ontology:Q515 }
Sankt Augustin
action filter_type
action find
entity Sankt Augustin
relation sister city
type city
['Sankt Augustin', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { resource:Sankt_Augustin property:sister_city ?z . ?z rdf:type ontology:city }
[]
city
Q377834
SYSTEM
Szentes
Q377834
(Q4090,P190,c(Q515))
action filter_type
action find
entity Q4090
relation P190
type Q515
[ANSWER] is sister town of that administrative territory
['Q4090', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { resource:Q4090 property:P190 ?z . ?z rdf:type ontology:Q515 }
Szentes
Szentes is sister town of that administrative territory
Szentes
action filter_type
action find
entity Sankt Augustin
relation sister city
type city
['Sankt Augustin', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { resource:Sankt_Augustin property:sister_city ?z . ?z rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q377834
P36
Q1162835
USER
Which district of Hungary consists of that city as its capital ?
(c(Q1162835),P36,Q377834)
action filter_type
action find_reverse
entity Q377834
relation P36
type Q1162835
[{'concept': 'Q1162835'}, 'P36', 'Q377834']
SELECT DISTINCT ?h WHERE { ?h property:P36 resource:Q377834 . ?h rdf:type ontology:Q1162835 }
Szentes
action filter_type
action find_reverse
entity Szentes
relation capital
type district of Hungary
[{'concept': 'district of Hungary'}, 'capital', 'Szentes']
SELECT DISTINCT ?h WHERE { ?h property:capital resource:Szentes . ?h rdf:type ontology:district_of_Hungary }
[]
district of Hungary
Q921275
SYSTEM
Szentes  District
Q921275
(c(Q1162835),P36,Q377834)
action filter_type
action find_reverse
entity Q377834
relation P36
type Q1162835
Szentes District consists of that city as its capital
[{'concept': 'Q1162835'}, 'P36', 'Q377834']
SELECT DISTINCT ?h WHERE { ?h property:P36 resource:Q377834 . ?h rdf:type ontology:Q1162835 }
Szentes  District
Szentes District consists of that city as its capital
Szentes  District
action filter_type
action find_reverse
entity Szentes
relation capital
type district of Hungary
[{'concept': 'district of Hungary'}, 'capital', 'Szentes']
SELECT DISTINCT ?h WHERE { ?h property:capital resource:Szentes . ?h rdf:type ontology:district_of_Hungary }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q377834
P1376
Q1162835
USER
Which district of Hungary has that city has its center of administration ?
(Q921275,P1376,c(Q1162835))
action filter_type
action find
entity Q377834
relation P1376
type Q1162835
['Q921275', 'P1376', {'concept': 'Q1162835'}]
SELECT DISTINCT ?q WHERE { resource:Q377834 property:P1376 ?q . ?q rdf:type ontology:Q1162835 }
Szentes
action filter_type
action find
entity Szentes
relation capital of
type district of Hungary
['Szentes  District', 'capital of', {'concept': 'district of Hungary'}]
SELECT DISTINCT ?q WHERE { resource:Szentes property:capital_of ?q . ?q rdf:type ontology:district_of_Hungary }
[]
district of Hungary
Q921275
SYSTEM
Szentes  District
Q921275
(Q921275,P1376,c(Q1162835))
action filter_type
action find
entity Q377834
relation P1376
type Q1162835
District Szentes District has that city has its center of administration
['Q921275', 'P1376', {'concept': 'Q1162835'}]
SELECT DISTINCT ?q WHERE { resource:Q377834 property:P1376 ?q . ?q rdf:type ontology:Q1162835 }
Szentes  District
District Szentes District has that city has its center of administration
Szentes  District
action filter_type
action find
entity Szentes
relation capital of
type district of Hungary
['Szentes  District', 'capital of', {'concept': 'district of Hungary'}]
SELECT DISTINCT ?q WHERE { resource:Szentes property:capital_of ?q . ?q rdf:type ontology:district_of_Hungary }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q377834
P17
Q15617994
USER
Which administrative territory does Szentes belong to ?
(Q377834,P17,c(Q15617994))
action filter_type
action find
entity Q377834
relation P17
type Q15617994
['Q377834', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q377834 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Szentes
action filter_type
action find
entity Szentes
relation country
type designation for an administrative territorial entity
['Szentes', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Szentes property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28
SYSTEM
Hungary
Q28
(Q377834,P17,c(Q15617994))
action filter_type
action find
entity Q377834
relation P17
type Q15617994
Szentes belongs to [ANSWER]
['Q377834', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q377834 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Hungary
Szentes belongs to Hungary
Hungary
action filter_type
action find
entity Szentes
relation country
type designation for an administrative territorial entity
['Szentes', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Szentes property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7493327
Q15617994
USER
And how about Shelburne Hotel?
(Q7493327,P17,c(Q15617994))
action filter_type
action find
entity Q7493327
relation P17
type Q15617994
['Q7493327', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q7493327 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Shelburne Hotel
action filter_type
action find
entity Shelburne Hotel
relation country
type designation for an administrative territorial entity
['Shelburne Hotel', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Shelburne_Hotel property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q7493327,P17,c(Q15617994))
action filter_type
action find
entity Q7493327
relation P17
type Q15617994
[ANSWER]
['Q7493327', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q7493327 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity Shelburne Hotel
relation country
type designation for an administrative territorial entity
['Shelburne Hotel', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Shelburne_Hotel property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q7493327
P1435
Q2065736
USER
How many cultural properties are the heritage status of Shelburne Hotel ?
(Q7493327,P1435,c(Q2065736))
action count
action filter_type
action find
entity Q7493327
relation P1435
type Q2065736
['Q7493327', 'P1435', {'concept': 'Q2065736'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { resource:Q7493327 property:P1435 ?o . ?o rdf:type ontology:Q2065736 }
Shelburne Hotel
action count
action filter_type
action find
entity Shelburne Hotel
relation heritage status
type cultural property
['Shelburne Hotel', 'heritage status', {'concept': 'cultural property'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { resource:Shelburne_Hotel property:heritage_status ?o . ?o rdf:type ontology:cultural_property }
[]
cultural property
SYSTEM
1
Q19558910
(Q7493327,P1435,c(Q2065736))
action count
action filter_type
action find
entity Q7493327
relation P1435
type Q2065736
[ANSWER]
['Q7493327', 'P1435', {'concept': 'Q2065736'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { resource:Q7493327 property:P1435 ?o . ?o rdf:type ontology:Q2065736 }
place listed on the National Register of Historic Places
1
action count
action filter_type
action find
entity Shelburne Hotel
relation heritage status
type cultural property
['Shelburne Hotel', 'heritage status', {'concept': 'cultural property'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { resource:Shelburne_Hotel property:heritage_status ?o . ?o rdf:type ontology:cultural_property }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q7193911
Q2065736
USER
And how about Pilgrim's Progress Road Bridge?
(Q7193911,P1435,c(Q2065736))
action count
action filter_type
action find
entity Q7193911
relation P1435
type Q2065736
['Q7193911', 'P1435', {'concept': 'Q2065736'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { ?p rdf:type ontology:Q2065736 . resource:Q7193911 property:P1435 ?p }
Pilgrim's Progress Road Bridge
action count
action filter_type
action find
entity Pilgrim's Progress Road Bridge
relation heritage status
type cultural property
["Pilgrim's Progress Road Bridge", 'heritage status', {'concept': 'cultural property'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { ?p rdf:type ontology:cultural_property . resource:Pilgrim's_Progress_Road_Bridge property:heritage_status ?p }
[]
cultural property
SYSTEM
1
(Q7193911,P1435,c(Q2065736))
action count
action filter_type
action find
entity Q7193911
relation P1435
type Q2065736
[ANSWER]
['Q7193911', 'P1435', {'concept': 'Q2065736'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { ?p rdf:type ontology:Q2065736 . resource:Q7193911 property:P1435 ?p }
1
action count
action filter_type
action find
entity Pilgrim's Progress Road Bridge
relation heritage status
type cultural property
["Pilgrim's Progress Road Bridge", 'heritage status', {'concept': 'cultural property'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { ?p rdf:type ontology:cultural_property . resource:Pilgrim's_Progress_Road_Bridge property:heritage_status ?p }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1769963 Q15423043
P937
Q56061
USER
Which administrative territories are the locations where Gerhard Fritz and Wilhelm Urban worked ?
AND((Q15423043,P937,c(Q56061)), (Q1769963,P937,c(Q56061)))
action filter_type
action intersection
action find
entity Q15423043
relation P937
action find
entity Q1769963
relation P937
type Q56061
{'AND': [['Q15423043', 'P937', {'concept': 'Q56061'}], ['Q1769963', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?m WHERE { resource:Q1769963 property:P937 ?m . resource:Q15423043 property:P937 ?m . ?m rdf:type ontology:Q56061 }
Wilhelm Urban Gerhard Fritz
action filter_type
action intersection
action find
entity Gerhard Fritz
relation work location
action find
entity Wilhelm Urban
relation work location
type administrative territorial entity
{'AND': [['Gerhard Fritz', 'work location', {'concept': 'administrative territorial entity'}], ['Wilhelm Urban', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { resource:Wilhelm_Urban property:work_location ?m . resource:Gerhard_Fritz property:work_location ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q586
SYSTEM
Bonn
Q586
AND((Q15423043,P937,c(Q56061)), (Q1769963,P937,c(Q56061)))
action filter_type
action intersection
action find
entity Q15423043
relation P937
action find
entity Q1769963
relation P937
type Q56061
The locations Gerhard Fritz and Wilhelm Urban worked are in [ANSWER]
{'AND': [['Q15423043', 'P937', {'concept': 'Q56061'}], ['Q1769963', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?m WHERE { resource:Q1769963 property:P937 ?m . resource:Q15423043 property:P937 ?m . ?m rdf:type ontology:Q56061 }
Bonn
The locations Gerhard Fritz and Wilhelm Urban worked are in Bonn
Bonn
action filter_type
action intersection
action find
entity Gerhard Fritz
relation work location
action find
entity Wilhelm Urban
relation work location
type administrative territorial entity
{'AND': [['Gerhard Fritz', 'work location', {'concept': 'administrative territorial entity'}], ['Wilhelm Urban', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { resource:Wilhelm_Urban property:work_location ?m . resource:Gerhard_Fritz property:work_location ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q91986 Q921275
P19 P36
Q515
USER
Which cities are called the capital of Szentes  District or were Adolf Held born at ?
OR((Q921275,P36,c(Q515)), (Q91986,P19,c(Q515)))
action filter_type
action union
action find
entity Q921275
relation P36
action find
entity Q91986
relation P19
type Q515
{'OR': [['Q921275', 'P36', {'concept': 'Q515'}], ['Q91986', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q91986 property:P19 ?h } UNION { resource:Q921275 property:P36 ?h } } . ?h rdf:type ontology:Q515 }
Adolf Held Szentes  District
action filter_type
action union
action find
entity Szentes  District
relation capital
action find
entity Adolf Held
relation place of birth
type city
{'OR': [['Szentes  District', 'capital', {'concept': 'city'}], ['Adolf Held', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Adolf_Held property:place_of_birth ?h } UNION { resource:Szentes__District property:capital ?h } } . ?h rdf:type ontology:city }
[]
city
Q377834 Q2999
SYSTEM
Szentes, Würzburg
Q377834 Q2999
OR((Q921275,P36,c(Q515)), (Q91986,P19,c(Q515)))
action filter_type
action union
action find
entity Q921275
relation P36
action find
entity Q91986
relation P19
type Q515
[ANSWERS] are called the capital of Szentes District or were Adolf Held born at
{'OR': [['Q921275', 'P36', {'concept': 'Q515'}], ['Q91986', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q91986 property:P19 ?h } UNION { resource:Q921275 property:P36 ?h } } . ?h rdf:type ontology:Q515 }
Szentes Würzburg
Szentes and Würzburg are called the capital of Szentes District or were Adolf Held born at
Szentes Würzburg
action filter_type
action union
action find
entity Szentes  District
relation capital
action find
entity Adolf Held
relation place of birth
type city
{'OR': [['Szentes  District', 'capital', {'concept': 'city'}], ['Adolf Held', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Adolf_Held property:place_of_birth ?h } UNION { resource:Szentes__District property:capital ?h } } . ?h rdf:type ontology:city }
[]