Simple Question (Direct)
Simple Question
Q3749970
P39
Q12737077
USER
Which occupations were the positions for which Francesco Ferrari were appointed ?
(Q3749970,P39,c(Q12737077))
action filter_type
action find
entity Q3749970
relation P39
type Q12737077
['Q3749970', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q3749970 property:P39 ?i . ?i rdf:type ontology:Q12737077 }
Francesco Ferrari
action filter_type
action find
entity Francesco Ferrari
relation position held
type occupation
['Francesco Ferrari', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Francesco_Ferrari property:position_held ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q18558478 Q30185
SYSTEM
member of the Chamber of Deputies of the Italian Republic, mayor
Q18558478 Q30185
(Q3749970,P39,c(Q12737077))
action filter_type
action find
entity Q3749970
relation P39
type Q12737077
[ANSWERS] were the positions for which Francesco Ferrari were appointed
['Q3749970', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q3749970 property:P39 ?i . ?i rdf:type ontology:Q12737077 }
member of the Chamber of Deputies of the Italian Republic mayor
Member of the Chamber of Deputies of the Italian Republic and mayor were the positions for which Francesco Ferrari were appointed
member of the Chamber of Deputies of the Italian Republic mayor
action filter_type
action find
entity Francesco Ferrari
relation position held
type occupation
['Francesco Ferrari', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Francesco_Ferrari property:position_held ?i . ?i rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q30185
P138
Q34442
USER
Which road comes from that occupation ?
(c(Q34442),P138,Q30185)
action filter_type
action find_reverse
entity Q30185
relation P138
type Q34442
[{'concept': 'Q34442'}, 'P138', 'Q30185']
SELECT DISTINCT ?m WHERE { ?m property:P138 resource:Q30185 . ?m rdf:type ontology:Q34442 }
mayor
action filter_type
action find_reverse
entity mayor
relation named after
type road
[{'concept': 'road'}, 'named after', 'mayor']
SELECT DISTINCT ?m WHERE { ?m property:named_after resource:mayor . ?m rdf:type ontology:road }
[]
road
Clarification for simple ques.
Q30185
SYSTEM
Did you mean mayor ?
Q18558478 Q30185
(c(Q34442),P138,Q18558478) (c(Q34442),P138,Q30185)
[ANSWER]
[{'concept': 'Q34442'}, 'P138', 'Q18558478'] [{'concept': 'Q34442'}, 'P138', 'Q30185']
SELECT DISTINCT ?m WHERE { ?m property:P138 resource:Q30185 . ?m rdf:type ontology:Q34442 }
member of the Chamber of Deputies of the Italian Republic mayor
Did you mean mayor ?
mayor
[{'concept': 'road'}, 'named after', 'member of the Chamber of Deputies of the Italian Republic'] [{'concept': 'road'}, 'named after', 'mayor']
SELECT DISTINCT ?m WHERE { ?m property:named_after resource:mayor . ?m rdf:type ontology:road }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q34442),P138,Q30185)
[{'concept': 'Q34442'}, 'P138', 'Q30185']
[{'concept': 'road'}, 'named after', 'mayor']
[]
Q15898831
SYSTEM
Borgmästargatan
Q15898831
(c(Q34442),P138,Q30185)
action filter_type
action find_reverse
entity Q30185
relation P138
type Q34442
[ANSWER] comes from that occupation
[{'concept': 'Q34442'}, 'P138', 'Q30185']
SELECT DISTINCT ?m WHERE { ?m property:P138 resource:Q30185 . ?m rdf:type ontology:Q34442 }
Borgmästargatan
Borgmästargatan comes from that occupation
Borgmästargatan
action filter_type
action find_reverse
entity mayor
relation named after
type road
[{'concept': 'road'}, 'named after', 'mayor']
SELECT DISTINCT ?m WHERE { ?m property:named_after resource:mayor . ?m rdf:type ontology:road }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q15898831 Q15898516
P559
Q34442
USER
Does Kocksgatan have that one as the terminus ?
(Q15898516,P559,Q15898831)
action is_in
entity Q15898831
action find
entity Q15898516
relation P559
['Q15898516', 'P559', 'Q15898831']
ASK WHERE { resource:Q15898516 property:P559 resource:Q15898831 }
Borgmästargatan Kocksgatan
action is_in
entity Borgmästargatan
action find
entity Kocksgatan
relation terminus
['Kocksgatan', 'terminus', 'Borgmästargatan']
ASK WHERE { resource:Kocksgatan property:terminus resource:Borgmästargatan }
[]
road
SYSTEM
YES
(Q15898516,P559,Q15898831)
action is_in
entity Q15898831
action find
entity Q15898516
relation P559
[ANSWER]
['Q15898516', 'P559', 'Q15898831']
ASK WHERE { resource:Q15898516 property:P559 resource:Q15898831 }
Yes
action is_in
entity Borgmästargatan
action find
entity Kocksgatan
relation terminus
['Kocksgatan', 'terminus', 'Borgmästargatan']
ASK WHERE { resource:Kocksgatan property:terminus resource:Borgmästargatan }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q15898831
P559
Q34442
USER
How many roads have Borgmästargatan as their endpoint ?
(c(Q34442),P559,Q15898831)
action count
action filter_type
action find_reverse
entity Q15898831
relation P559
type Q34442
[{'concept': 'Q34442'}, 'P559', 'Q15898831']
SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { ?s property:P559 resource:Q15898831 . ?s rdf:type ontology:Q34442 }
Borgmästargatan
action count
action filter_type
action find_reverse
entity Borgmästargatan
relation terminus
type road
[{'concept': 'road'}, 'terminus', 'Borgmästargatan']
SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { ?s property:terminus resource:Borgmästargatan . ?s rdf:type ontology:road }
[]
road
SYSTEM
1
Q15898516
(c(Q34442),P559,Q15898831)
action count
action filter_type
action find_reverse
entity Q15898831
relation P559
type Q34442
[ANSWER]
[{'concept': 'Q34442'}, 'P559', 'Q15898831']
SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { ?s property:P559 resource:Q15898831 . ?s rdf:type ontology:Q34442 }
Kocksgatan
1
action count
action filter_type
action find_reverse
entity Borgmästargatan
relation terminus
type road
[{'concept': 'road'}, 'terminus', 'Borgmästargatan']
SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { ?s property:terminus resource:Borgmästargatan . ?s rdf:type ontology:road }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18558478
P1001
Q15617994
USER
Which administrative territory comes under the supervision of member of the Chamber of Deputies of the Italian Republic ?
(Q18558478,P1001,c(Q15617994))
action filter_type
action find
entity Q18558478
relation P1001
type Q15617994
['Q18558478', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q18558478 property:P1001 ?e . ?e rdf:type ontology:Q15617994 }
member of the Chamber of Deputies of the Italian Republic
action filter_type
action find
entity member of the Chamber of Deputies of the Italian Republic
relation applies to jurisdiction
type designation for an administrative territorial entity
['member of the Chamber of Deputies of the Italian Republic', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:member_of_the_Chamber_of_Deputies_of_the_Italian_Republic property:applies_to_jurisdiction ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q18558478,P1001,c(Q15617994))
action filter_type
action find
entity Q18558478
relation P1001
type Q15617994
Of [ANSWER] comes under the supervision of member of the Chamber of Deputies of the Italian Republic
['Q18558478', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q18558478 property:P1001 ?e . ?e rdf:type ontology:Q15617994 }
Italy
Of Italy comes under the supervision of member of the Chamber of Deputies of the Italian Republic
Italy
action filter_type
action find
entity member of the Chamber of Deputies of the Italian Republic
relation applies to jurisdiction
type designation for an administrative territorial entity
['member of the Chamber of Deputies of the Italian Republic', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:member_of_the_Chamber_of_Deputies_of_the_Italian_Republic property:applies_to_jurisdiction ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18558478
P361
Q375928
USER
What is member of the Chamber of Deputies of the Italian Republic a part of ?
(Q18558478,P361,c(Q375928))
action filter_type
action find
entity Q18558478
relation P361
type Q375928
['Q18558478', 'P361', {'concept': 'Q375928'}]
SELECT DISTINCT ?q WHERE { resource:Q18558478 property:P361 ?q . ?q rdf:type ontology:Q375928 }
member of the Chamber of Deputies of the Italian Republic
action filter_type
action find
entity member of the Chamber of Deputies of the Italian Republic
relation part of
type lower house
['member of the Chamber of Deputies of the Italian Republic', 'part of', {'concept': 'lower house'}]
SELECT DISTINCT ?q WHERE { resource:member_of_the_Chamber_of_Deputies_of_the_Italian_Republic property:part_of ?q . ?q rdf:type ontology:lower_house }
[]
lower house
Q841424
SYSTEM
Chamber of Deputies
Q841424
(Q18558478,P361,c(Q375928))
action filter_type
action find
entity Q18558478
relation P361
type Q375928
Member of the [ANSWER] of the Italian Republic a part of is the [ANSWER]
['Q18558478', 'P361', {'concept': 'Q375928'}]
SELECT DISTINCT ?q WHERE { resource:Q18558478 property:P361 ?q . ?q rdf:type ontology:Q375928 }
Chamber of Deputies
Member of the Chamber of Deputies of the Italian Republic a part of is the Chamber of Deputies
Chamber of Deputies
action filter_type
action find
entity member of the Chamber of Deputies of the Italian Republic
relation part of
type lower house
['member of the Chamber of Deputies of the Italian Republic', 'part of', {'concept': 'lower house'}]
SELECT DISTINCT ?q WHERE { resource:member_of_the_Chamber_of_Deputies_of_the_Italian_Republic property:part_of ?q . ?q rdf:type ontology:lower_house }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q14554538
Q375928
USER
And what about President of the Chamber of Deputies of the Kingdom of Italy?
(Q14554538,P361,c(Q375928))
action filter_type
action find
entity Q14554538
relation P361
type Q375928
['Q14554538', 'P361', {'concept': 'Q375928'}]
SELECT DISTINCT ?e WHERE { resource:Q14554538 property:P361 ?e . ?e rdf:type ontology:Q375928 }
President of the Chamber of Deputies of the Kingdom of Italy
action filter_type
action find
entity President of the Chamber of Deputies of the Kingdom of Italy
relation part of
type lower house
['President of the Chamber of Deputies of the Kingdom of Italy', 'part of', {'concept': 'lower house'}]
SELECT DISTINCT ?e WHERE { resource:President_of_the_Chamber_of_Deputies_of_the_Kingdom_of_Italy property:part_of ?e . ?e rdf:type ontology:lower_house }
[]
lower house
Q3651272
SYSTEM
Chamber of Deputies of the Kingdom of Italy
Q3651272
(Q14554538,P361,c(Q375928))
action filter_type
action find
entity Q14554538
relation P361
type Q375928
[ANSWER]
['Q14554538', 'P361', {'concept': 'Q375928'}]
SELECT DISTINCT ?e WHERE { resource:Q14554538 property:P361 ?e . ?e rdf:type ontology:Q375928 }
Chamber of Deputies of the Kingdom of Italy
Chamber of Deputies of the Kingdom of Italy
action filter_type
action find
entity President of the Chamber of Deputies of the Kingdom of Italy
relation part of
type lower house
['President of the Chamber of Deputies of the Kingdom of Italy', 'part of', {'concept': 'lower house'}]
SELECT DISTINCT ?e WHERE { resource:President_of_the_Chamber_of_Deputies_of_the_Kingdom_of_Italy property:part_of ?e . ?e rdf:type ontology:lower_house }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q358086 Q18558478
P17
Q15617994
USER
Which administrative territories do member of the Chamber of Deputies of the Italian Republic or Kronogård belong to ?
OR((Q18558478,P17,c(Q15617994)), (Q358086,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q18558478
relation P17
action find
entity Q358086
relation P17
type Q15617994
{'OR': [['Q18558478', 'P17', {'concept': 'Q15617994'}], ['Q358086', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q358086 property:P17 ?n } UNION { resource:Q18558478 property:P17 ?n } } . ?n rdf:type ontology:Q15617994 }
Kronogård member of the Chamber of Deputies of the Italian Republic
action filter_type
action union
action find
entity member of the Chamber of Deputies of the Italian Republic
relation country
action find
entity Kronogård
relation country
type designation for an administrative territorial entity
{'OR': [['member of the Chamber of Deputies of the Italian Republic', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Kronogård', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Kronogård property:country ?n } UNION { resource:member_of_the_Chamber_of_Deputies_of_the_Italian_Republic property:country ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q34
SYSTEM
Italy, Sweden
Q38 Q34
OR((Q18558478,P17,c(Q15617994)), (Q358086,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q18558478
relation P17
action find
entity Q358086
relation P17
type Q15617994
[ANSWERS] member of the Chamber of Deputies of the Italian Republic or Kronogård belong to
{'OR': [['Q18558478', 'P17', {'concept': 'Q15617994'}], ['Q358086', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q358086 property:P17 ?n } UNION { resource:Q18558478 property:P17 ?n } } . ?n rdf:type ontology:Q15617994 }
Italy Sweden
Italy and Sweden member of the Chamber of Deputies of the Italian Republic or Kronogård belong to
Italy Sweden
action filter_type
action union
action find
entity member of the Chamber of Deputies of the Italian Republic
relation country
action find
entity Kronogård
relation country
type designation for an administrative territorial entity
{'OR': [['member of the Chamber of Deputies of the Italian Republic', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Kronogård', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Kronogård property:country ?n } UNION { resource:member_of_the_Chamber_of_Deputies_of_the_Italian_Republic property:country ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4448609
P530
Q1048835
USER
Do Siadryne have diplomatic relations with those administrative territories ?
(Q4448609,P530,Q38) (Q4448609,P530,Q34)
action is_in
entity prev_answer
action find
entity Q4448609
relation P530
['Q4448609', 'P530', 'Q38'] ['Q4448609', 'P530', 'Q34']
ASK WHERE { resource:Q4448609 property:P530 ?j . VALUES ( ?j ) { ( resource:Q38 ) ( resource:Q34 ) } }
Siadryne
action is_in
entity prev_answer
action find
entity Siadryne
relation diplomatic relation
['Siadryne', 'diplomatic relation', 'Italy'] ['Siadryne', 'diplomatic relation', 'Sweden']
ASK WHERE { resource:Siadryne property:diplomatic_relation ?j . VALUES ( ?j ) { ( resource:Italy ) ( resource:Sweden ) } }
[]
political territorial entity
SYSTEM
NO
(Q4448609,P530,Q38) (Q4448609,P530,Q34)
action is_in
entity prev_answer
action find
entity Q4448609
relation P530
[ANSWER]
['Q4448609', 'P530', 'Q38'] ['Q4448609', 'P530', 'Q34']
ASK WHERE { resource:Q4448609 property:P530 ?j . VALUES ( ?j ) { ( resource:Q38 ) ( resource:Q34 ) } }
No
action is_in
entity prev_answer
action find
entity Siadryne
relation diplomatic relation
['Siadryne', 'diplomatic relation', 'Italy'] ['Siadryne', 'diplomatic relation', 'Sweden']
ASK WHERE { resource:Siadryne property:diplomatic_relation ?j . VALUES ( ?j ) { ( resource:Italy ) ( resource:Sweden ) } }
[]