Simple Question (Direct)
Simple Question
Q1824293
P937
Q515
USER
Where did Lieselott Herforth work ?
(Q1824293,P937,c(Q515))
action filter_type
action find
entity Q1824293
relation P937
type Q515
['Q1824293', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?m WHERE { resource:Q1824293 property:P937 ?m . ?m rdf:type ontology:Q515 }
Lieselott Herforth
action filter_type
action find
entity Lieselott Herforth
relation work location
type city
['Lieselott Herforth', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?m WHERE { resource:Lieselott_Herforth property:work_location ?m . ?m rdf:type ontology:city }
[]
city
Q1731 Q2079
SYSTEM
Dresden, Leipzig
Q1731 Q2079
(Q1824293,P937,c(Q515))
action filter_type
action find
entity Q1824293
relation P937
type Q515
Lieselott Herforth worked in [ANSWERS]
['Q1824293', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?m WHERE { resource:Q1824293 property:P937 ?m . ?m rdf:type ontology:Q515 }
Dresden Leipzig
Lieselott Herforth worked in Dresden and Leipzig
Dresden Leipzig
action filter_type
action find
entity Lieselott Herforth
relation work location
type city
['Lieselott Herforth', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?m WHERE { resource:Lieselott_Herforth property:work_location ?m . ?m rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1731 Q2079
P138
Q17444909
USER
Which astronomical object types have those cities as their toponym ?
(c(Q17444909),P138,Q1731) (c(Q17444909),P138,Q2079)
action filter_type
action find_reverse
entity prev_answer
relation P138
type Q17444909
[{'concept': 'Q17444909'}, 'P138', 'Q1731'] [{'concept': 'Q17444909'}, 'P138', 'Q2079']
SELECT DISTINCT ?s WHERE { VALUES ( ?z ) { ( resource:Q1731 ) ( resource:Q2079 ) } . ?s rdf:type ontology:Q17444909 . ?s property:P138 ?z }
Dresden Leipzig
action filter_type
action find_reverse
entity prev_answer
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Dresden'] [{'concept': 'astronomical object type'}, 'named after', 'Leipzig']
SELECT DISTINCT ?s WHERE { VALUES ( ?z ) { ( resource:Dresden ) ( resource:Leipzig ) } . ?s rdf:type ontology:astronomical_object_type . ?s property:named_after ?z }
[]
astronomical object type
Q149754 Q735487 Q2627296
SYSTEM
263 Dresda, 3053 Dresden, 10775 Leipzig
Q149754 Q735487 Q2627296
(c(Q17444909),P138,Q1731) (c(Q17444909),P138,Q2079)
action filter_type
action find_reverse
entity prev_answer
relation P138
type Q17444909
[ANSWERS] have those cities as their toponym
[{'concept': 'Q17444909'}, 'P138', 'Q1731'] [{'concept': 'Q17444909'}, 'P138', 'Q2079']
SELECT DISTINCT ?s WHERE { VALUES ( ?z ) { ( resource:Q1731 ) ( resource:Q2079 ) } . ?s rdf:type ontology:Q17444909 . ?s property:P138 ?z }
263 Dresda 3053 Dresden 10775 Leipzig
263 Dresda, 3053 Dresden and 10775 Leipzig have those cities as their toponym
263 Dresda 3053 Dresden 10775 Leipzig
action filter_type
action find_reverse
entity prev_answer
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Dresden'] [{'concept': 'astronomical object type'}, 'named after', 'Leipzig']
SELECT DISTINCT ?s WHERE { VALUES ( ?z ) { ( resource:Dresden ) ( resource:Leipzig ) } . ?s rdf:type ontology:astronomical_object_type . ?s property:named_after ?z }
[]
Clarification
Simple Question|Single Entity|Indirect
Q149754
P61
Q502895
USER
Which person was the first person to come up with that astronomical object type ?
(Q149754,P61,c(Q502895))
action filter_type
action find
entity Q149754
relation P61
type Q502895
['Q149754', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q149754 property:P61 ?z . ?z rdf:type ontology:Q502895 }
263 Dresda
action filter_type
action find
entity 263 Dresda
relation discoverer or inventor
type common name
['263 Dresda', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:263_Dresda property:discoverer_or_inventor ?z . ?z rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q735487
SYSTEM
Did you mean 3053 Dresden ?
Q149754 Q735487 Q2627296
(Q149754,P61,c(Q502895)) (Q735487,P61,c(Q502895)) (Q2627296,P61,c(Q502895))
[ANSWER]
['Q149754', 'P61', {'concept': 'Q502895'}] ['Q735487', 'P61', {'concept': 'Q502895'}] ['Q2627296', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q149754 property:P61 ?z . ?z rdf:type ontology:Q502895 }
263 Dresda 3053 Dresden 10775 Leipzig
Did you mean 3053 Dresden ?
3053 Dresden
['263 Dresda', 'discoverer or inventor', {'concept': 'common name'}] ['3053 Dresden', 'discoverer or inventor', {'concept': 'common name'}] ['10775 Leipzig', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:263_Dresda property:discoverer_or_inventor ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant 263 Dresda. Could you tell me the answer for that?
(Q149754,P61,c(Q502895))
Q149754
['Q149754', 'P61', {'concept': 'Q502895'}]
['263 Dresda', 'discoverer or inventor', {'concept': 'common name'}]
[]
Q78486
SYSTEM
Johann Palisa
Q78486
(Q149754,P61,c(Q502895))
action filter_type
action find
entity Q149754
relation P61
type Q502895
[ANSWER] was the first person to come up with that astronomical object type
['Q149754', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q149754 property:P61 ?z . ?z rdf:type ontology:Q502895 }
Johann Palisa
Johann Palisa was the first person to come up with that astronomical object type
Johann Palisa
action filter_type
action find
entity 263 Dresda
relation discoverer or inventor
type common name
['263 Dresda', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:263_Dresda property:discoverer_or_inventor ?z . ?z rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q78486 Q1741
P20
Q56061
USER
Did Johann Palisa expire Vienna ?
(Q78486,P20,Q1741)
action is_in
entity Q1741
action find
entity Q78486
relation P20
['Q78486', 'P20', 'Q1741']
ASK WHERE { resource:Q78486 property:P20 resource:Q1741 }
Johann Palisa Vienna
action is_in
entity Vienna
action find
entity Johann Palisa
relation place of death
['Johann Palisa', 'place of death', 'Vienna']
ASK WHERE { resource:Johann_Palisa property:place_of_death resource:Vienna }
[]
administrative territorial entity
SYSTEM
YES
(Q78486,P20,Q1741)
action is_in
entity Q1741
action find
entity Q78486
relation P20
[ANSWER]
['Q78486', 'P20', 'Q1741']
ASK WHERE { resource:Q78486 property:P20 resource:Q1741 }
Yes
action is_in
entity Vienna
action find
entity Johann Palisa
relation place of death
['Johann Palisa', 'place of death', 'Vienna']
ASK WHERE { resource:Johann_Palisa property:place_of_death resource:Vienna }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1731
P1376
Q1048835 Q7275
USER
How many political territories or states have Dresden have their first city ?
(Q1731,P1376,c(Q1048835)) (Q1731,P1376,c(Q7275))
action count
action union
action filter_type
action find
entity Q1731
relation P1376
type Q1048835
action filter_type
action find
entity Q1731
relation P1376
type Q7275
['Q1731', 'P1376', {'concept': 'Q1048835'}] ['Q1731', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { { resource:Q1731 property:P1376 ?s . ?s rdf:type ontology:Q1048835 } UNION { resource:Q1731 property:P1376 ?s . ?s rdf:type ontology:Q7275 } }
Dresden
action count
action union
action filter_type
action find
entity Dresden
relation capital of
type political territorial entity
action filter_type
action find
entity Dresden
relation capital of
type state
['Dresden', 'capital of', {'concept': 'political territorial entity'}] ['Dresden', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { { resource:Dresden property:capital_of ?s . ?s rdf:type ontology:political_territorial_entity } UNION { resource:Dresden property:capital_of ?s . ?s rdf:type ontology:state } }
[]
political territorial entity state
SYSTEM
2
Q153015 Q24174
(Q1731,P1376,c(Q1048835)) (Q1731,P1376,c(Q7275))
action count
action union
action filter_type
action find
entity Q1731
relation P1376
type Q1048835
action filter_type
action find
entity Q1731
relation P1376
type Q7275
[ANSWER]
['Q1731', 'P1376', {'concept': 'Q1048835'}] ['Q1731', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { { resource:Q1731 property:P1376 ?s . ?s rdf:type ontology:Q1048835 } UNION { resource:Q1731 property:P1376 ?s . ?s rdf:type ontology:Q7275 } }
Kingdom of Saxony Dresden Government Region
2
action count
action union
action filter_type
action find
entity Dresden
relation capital of
type political territorial entity
action filter_type
action find
entity Dresden
relation capital of
type state
['Dresden', 'capital of', {'concept': 'political territorial entity'}] ['Dresden', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { { resource:Dresden property:capital_of ?s . ?s rdf:type ontology:political_territorial_entity } UNION { resource:Dresden property:capital_of ?s . ?s rdf:type ontology:state } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by around 3146 people ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3146
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?m ) WHERE { ?i property:P1303 ?q . ?q rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?q } . FILTER ( ?m = 3146 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3146
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?m ) WHERE { ?i property:instrument ?q . ?q rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?q } . FILTER ( ?m = 3146 ) }
[]
musical instrument common name
Q8355 Q1444 Q128309
SYSTEM
violin, organ, drum kit
Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3146
[ANSWERS] are played by around 3146 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?m ) WHERE { ?i property:P1303 ?q . ?q rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?q } . FILTER ( ?m = 3146 ) }
violin organ drum kit
Violin, organ and drum kit are played by around 3146 people
violin organ drum kit
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3146
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?m ) WHERE { ?i property:instrument ?q . ?q rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?q } . FILTER ( ?m = 3146 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q65022 Q149754
P19 P138
Q515
USER
Which cities are 263 Dresda named after or were Ellen von Unwerth born ?
OR((Q149754,P138,c(Q515)), (Q65022,P19,c(Q515)))
action filter_type
action union
action find
entity Q149754
relation P138
action find
entity Q65022
relation P19
type Q515
{'OR': [['Q149754', 'P138', {'concept': 'Q515'}], ['Q65022', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q149754 property:P138 ?p } UNION { resource:Q65022 property:P19 ?p } } . ?p rdf:type ontology:Q515 }
Ellen von Unwerth 263 Dresda
action filter_type
action union
action find
entity 263 Dresda
relation named after
action find
entity Ellen von Unwerth
relation place of birth
type city
{'OR': [['263 Dresda', 'named after', {'concept': 'city'}], ['Ellen von Unwerth', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?p WHERE { { { resource:263_Dresda property:named_after ?p } UNION { resource:Ellen_von_Unwerth property:place_of_birth ?p } } . ?p rdf:type ontology:city }
[]
city
Q1731 Q1794
SYSTEM
Dresden, Frankfurt
Q1731 Q1794
OR((Q149754,P138,c(Q515)), (Q65022,P19,c(Q515)))
action filter_type
action union
action find
entity Q149754
relation P138
action find
entity Q65022
relation P19
type Q515
263 Dresda are named born in [ANSWERS]
{'OR': [['Q149754', 'P138', {'concept': 'Q515'}], ['Q65022', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q149754 property:P138 ?p } UNION { resource:Q65022 property:P19 ?p } } . ?p rdf:type ontology:Q515 }
Dresden Frankfurt
263 Dresda are named born in Dresden and Frankfurt
Dresden Frankfurt
action filter_type
action union
action find
entity 263 Dresda
relation named after
action find
entity Ellen von Unwerth
relation place of birth
type city
{'OR': [['263 Dresda', 'named after', {'concept': 'city'}], ['Ellen von Unwerth', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?p WHERE { { { resource:263_Dresda property:named_after ?p } UNION { resource:Ellen_von_Unwerth property:place_of_birth ?p } } . ?p rdf:type ontology:city }
[]