Simple Question (Direct)
Simple Question
Q1490919
P21
Q290
USER
Which sex does Luigi Caldana belong to ?
(Q1490919,P21,c(Q290))
action filter_type
action find
entity Q1490919
relation P21
type Q290
['Q1490919', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q1490919 property:P21 ?a . ?a rdf:type ontology:Q290 }
Luigi Caldana
action filter_type
action find
entity Luigi Caldana
relation gender
type sex
['Luigi Caldana', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Luigi_Caldana property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1490919,P21,c(Q290))
action filter_type
action find
entity Q1490919
relation P21
type Q290
Luigi Caldana belongs to [ANSWER]
['Q1490919', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q1490919 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
Luigi Caldana belongs to male
male
action filter_type
action find
entity Luigi Caldana
relation gender
type sex
['Luigi Caldana', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Luigi_Caldana property:gender ?a . ?a rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1490919
P19
Q15617994
USER
Which administrative territory is the birthplace of that person ?
(Q6581097,P19,c(Q15617994))
action filter_type
action find
entity Q1490919
relation P19
type Q15617994
['Q6581097', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q1490919 property:P19 ?c . ?c rdf:type ontology:Q15617994 }
Luigi Caldana
action filter_type
action find
entity Luigi Caldana
relation place of birth
type designation for an administrative territorial entity
['male', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Luigi_Caldana property:place_of_birth ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q46935
SYSTEM
Lazise
Q46935
(Q6581097,P19,c(Q15617994))
action filter_type
action find
entity Q1490919
relation P19
type Q15617994
[ANSWER] is the birthplace of that person
['Q6581097', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q1490919 property:P19 ?c . ?c rdf:type ontology:Q15617994 }
Lazise
Lazise is the birthplace of that person
Lazise
action filter_type
action find
entity Luigi Caldana
relation place of birth
type designation for an administrative territorial entity
['male', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Luigi_Caldana property:place_of_birth ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q46935 Q38
P17
Q15617994
USER
Is Lazise situated in Italy ?
(Q46935,P17,Q38)
action is_in
entity Q38
action find
entity Q46935
relation P17
['Q46935', 'P17', 'Q38']
ASK WHERE { resource:Q46935 property:P17 resource:Q38 }
Lazise Italy
action is_in
entity Italy
action find
entity Lazise
relation country
['Lazise', 'country', 'Italy']
ASK WHERE { resource:Lazise property:country resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q46935,P17,Q38)
action is_in
entity Q38
action find
entity Q46935
relation P17
[ANSWER]
['Q46935', 'P17', 'Q38']
ASK WHERE { resource:Q46935 property:P17 resource:Q38 }
Yes
action is_in
entity Italy
action find
entity Lazise
relation country
['Lazise', 'country', 'Italy']
ASK WHERE { resource:Lazise property:country resource:Italy }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q46935
P190
Q515
USER
Which city is twin town of Lazise ?
(c(Q515),P190,Q46935)
action filter_type
action find
entity Q46935
relation P190
type Q515
[{'concept': 'Q515'}, 'P190', 'Q46935']
SELECT DISTINCT ?a WHERE { resource:Q46935 property:P190 ?a . ?a rdf:type ontology:Q515 }
Lazise
action filter_type
action find
entity Lazise
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Lazise']
SELECT DISTINCT ?a WHERE { resource:Lazise property:sister_city ?a . ?a rdf:type ontology:city }
[]
city
Q4007
SYSTEM
Rosenheim
Q4007
(c(Q515),P190,Q46935)
action filter_type
action find
entity Q46935
relation P190
type Q515
[ANSWER] is twin town of Lazise
[{'concept': 'Q515'}, 'P190', 'Q46935']
SELECT DISTINCT ?a WHERE { resource:Q46935 property:P190 ?a . ?a rdf:type ontology:Q515 }
Rosenheim
Rosenheim is twin town of Lazise
Rosenheim
action filter_type
action find
entity Lazise
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Lazise']
SELECT DISTINCT ?a WHERE { resource:Lazise property:sister_city ?a . ?a rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q46935
P417
Q502895
USER
What is the name of person who is the patron saint of that administrative territory ?
(Q4007,P417,c(Q502895))
action filter_type
action find
entity Q46935
relation P417
type Q502895
['Q4007', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q46935 property:P417 ?a . ?a rdf:type ontology:Q502895 }
Lazise
action filter_type
action find
entity Lazise
relation patron saint
type common name
['Rosenheim', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Lazise property:patron_saint ?a . ?a rdf:type ontology:common_name }
[]
common name
Q133704
SYSTEM
Martin of Tours
Q133704
(Q4007,P417,c(Q502895))
action filter_type
action find
entity Q46935
relation P417
type Q502895
The name of person is the patron saint of that administrative territory is Saint [ANSWER]
['Q4007', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q46935 property:P417 ?a . ?a rdf:type ontology:Q502895 }
Martin of Tours
The name of person is the patron saint of that administrative territory is Saint Martin of Tours
Martin of Tours
action filter_type
action find
entity Lazise
relation patron saint
type common name
['Rosenheim', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Lazise property:patron_saint ?a . ?a rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do atleast 2203 people know to play ?
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2203
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?a ) WHERE { ?e property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?j } . FILTER ( ?a >= 2203 ) }
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2203
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?a ) WHERE { ?e property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?j } . FILTER ( ?a >= 2203 ) }
[]
musical instrument common name
Q5994 Q8355 Q1444
SYSTEM
piano, violin, organ
Q5994 Q8355 Q1444
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2203
Atleast 2203 people know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?a ) WHERE { ?e property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?j } . FILTER ( ?a >= 2203 ) }
piano violin organ
Atleast 2203 people know about piano, violin and organ
piano violin organ
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2203
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?a ) WHERE { ?e property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?j } . FILTER ( ?a >= 2203 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5994
P61
Q502895
USER
Who discovered or invented that musical instrument ?
(Q5994,P61,c(Q502895))
action filter_type
action find
entity Q5994
relation P61
type Q502895
['Q5994', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q5994 property:P61 ?x . ?x rdf:type ontology:Q502895 }
piano
action filter_type
action find
entity piano
relation discoverer or inventor
type common name
['piano', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:piano property:discoverer_or_inventor ?x . ?x rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q5994
SYSTEM
Did you mean piano ?
Q5994 Q8355 Q1444
(Q5994,P61,c(Q502895)) (Q8355,P61,c(Q502895)) (Q1444,P61,c(Q502895))
[ANSWER]
['Q5994', 'P61', {'concept': 'Q502895'}] ['Q8355', 'P61', {'concept': 'Q502895'}] ['Q1444', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q5994 property:P61 ?x . ?x rdf:type ontology:Q502895 }
piano violin organ
Did you mean piano ?
piano
['piano', 'discoverer or inventor', {'concept': 'common name'}] ['violin', 'discoverer or inventor', {'concept': 'common name'}] ['organ', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:piano property:discoverer_or_inventor ?x . ?x rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q5994,P61,c(Q502895))
['Q5994', 'P61', {'concept': 'Q502895'}]
['piano', 'discoverer or inventor', {'concept': 'common name'}]
[]
Q301597
SYSTEM
Bartolomeo Cristofori
Q301597
(Q5994,P61,c(Q502895))
action filter_type
action find
entity Q5994
relation P61
type Q502895
[ANSWER] discovered or invented that musical instrument
['Q5994', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q5994 property:P61 ?x . ?x rdf:type ontology:Q502895 }
Bartolomeo Cristofori
Bartolomeo Cristofori discovered or invented that musical instrument
Bartolomeo Cristofori
action filter_type
action find
entity piano
relation discoverer or inventor
type common name
['piano', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:piano property:discoverer_or_inventor ?x . ?x rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5242362 Q46935
P17
Q15617994
USER
Which administrative territories are Lazise or Dawidy, Pruszków County located in ?
OR((Q46935,P17,c(Q15617994)), (Q5242362,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q46935
relation P17
action find
entity Q5242362
relation P17
type Q15617994
{'OR': [['Q46935', 'P17', {'concept': 'Q15617994'}], ['Q5242362', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { ?f property:P17 ?r . VALUES ( ?f ) { ( resource:Q46935 ) ( resource:Q5242362 ) } } . ?r rdf:type ontology:Q15617994 }
Dawidy, Pruszków County Lazise
action filter_type
action union
action find
entity Lazise
relation country
action find
entity Dawidy, Pruszków County
relation country
type designation for an administrative territorial entity
{'OR': [['Lazise', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Dawidy, Pruszków County', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { ?f property:country ?r . VALUES ( ?f ) { ( resource:Lazise ) ( resource:Dawidy,_Pruszków_County ) } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q36
SYSTEM
Italy, Poland
Q38 Q36
OR((Q46935,P17,c(Q15617994)), (Q5242362,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q46935
relation P17
action find
entity Q5242362
relation P17
type Q15617994
Lazise or Dawidy , Pruszków County are located in the [ANSWERS]
{'OR': [['Q46935', 'P17', {'concept': 'Q15617994'}], ['Q5242362', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { ?f property:P17 ?r . VALUES ( ?f ) { ( resource:Q46935 ) ( resource:Q5242362 ) } } . ?r rdf:type ontology:Q15617994 }
Italy Poland
Lazise or Dawidy , Pruszków County are located in the Italy and Poland
Italy Poland
action filter_type
action union
action find
entity Lazise
relation country
action find
entity Dawidy, Pruszków County
relation country
type designation for an administrative territorial entity
{'OR': [['Lazise', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Dawidy, Pruszków County', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { ?f property:country ?r . VALUES ( ?f ) { ( resource:Lazise ) ( resource:Dawidy,_Pruszków_County ) } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q36 Q846
P530
Q1048835
USER
How many political territories have diplomatic associations with Poland and Qatar ?
(c(Q1048835),P530,Q36) (c(Q1048835),P530,Q846)
action count
action intersection
action filter_type
action find_reverse
entity Q36
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q846
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q36'] [{'concept': 'Q1048835'}, 'P530', 'Q846']
SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:P530 resource:Q36 . ?g rdf:type ontology:Q1048835 . ?g property:P530 resource:Q846 . ?g rdf:type ontology:Q1048835 }
Poland Qatar
action count
action intersection
action filter_type
action find_reverse
entity Poland
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Qatar
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Poland'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Qatar']
SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:diplomatic_relation resource:Poland . ?g rdf:type ontology:political_territorial_entity . ?g property:diplomatic_relation resource:Qatar . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q16
(c(Q1048835),P530,Q36) (c(Q1048835),P530,Q846)
action count
action intersection
action filter_type
action find_reverse
entity Q36
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q846
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q36'] [{'concept': 'Q1048835'}, 'P530', 'Q846']
SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:P530 resource:Q36 . ?g rdf:type ontology:Q1048835 . ?g property:P530 resource:Q846 . ?g rdf:type ontology:Q1048835 }
Australia Canada
2
action count
action intersection
action filter_type
action find_reverse
entity Poland
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Qatar
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Poland'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Qatar']
SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { ?g property:diplomatic_relation resource:Poland . ?g rdf:type ontology:political_territorial_entity . ?g property:diplomatic_relation resource:Qatar . ?g rdf:type ontology:political_territorial_entity }
[]