Simple Question (Direct)
Simple Question
Q17582684
P1412
Q34770
USER
Which language can Angela Ricci Lucchi read ?
(Q17582684,P1412,c(Q34770))
action filter_type
action find
entity Q17582684
relation P1412
type Q34770
['Q17582684', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { resource:Q17582684 property:P1412 ?c . ?c rdf:type ontology:Q34770 }
Angela Ricci Lucchi
action filter_type
action find
entity Angela Ricci Lucchi
relation languages spoken, written or signed
type language
['Angela Ricci Lucchi', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { resource:Angela_Ricci_Lucchi property:languages_spoken,_written_or_signed ?c . ?c rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q17582684,P1412,c(Q34770))
action filter_type
action find
entity Q17582684
relation P1412
type Q34770
Angela Ricci Lucchi can read in [ANSWER]
['Q17582684', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { resource:Q17582684 property:P1412 ?c . ?c rdf:type ontology:Q34770 }
Italian
Angela Ricci Lucchi can read in Italian
Italian
action filter_type
action find
entity Angela Ricci Lucchi
relation languages spoken, written or signed
type language
['Angela Ricci Lucchi', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { resource:Angela_Ricci_Lucchi property:languages_spoken,_written_or_signed ?c . ?c rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17582684
P26
Q502895
USER
Who is married to Angela Ricci Lucchi ?
(c(Q502895),P26,Q17582684)
action filter_type
action find
entity Q17582684
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q17582684']
SELECT DISTINCT ?l WHERE { resource:Q17582684 property:P26 ?l . ?l rdf:type ontology:Q502895 }
Angela Ricci Lucchi
action filter_type
action find
entity Angela Ricci Lucchi
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Angela Ricci Lucchi']
SELECT DISTINCT ?l WHERE { resource:Angela_Ricci_Lucchi property:spouse ?l . ?l rdf:type ontology:common_name }
[]
common name
Q17582678
SYSTEM
Yervant Gianikian
Q17582678
(c(Q502895),P26,Q17582684)
action filter_type
action find
entity Q17582684
relation P26
type Q502895
[ANSWER] is married to Angela Ricci Lucchi
[{'concept': 'Q502895'}, 'P26', 'Q17582684']
SELECT DISTINCT ?l WHERE { resource:Q17582684 property:P26 ?l . ?l rdf:type ontology:Q502895 }
Yervant Gianikian
Yervant Gianikian is married to Angela Ricci Lucchi
Yervant Gianikian
action filter_type
action find
entity Angela Ricci Lucchi
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Angela Ricci Lucchi']
SELECT DISTINCT ?l WHERE { resource:Angela_Ricci_Lucchi property:spouse ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17582684
P710
Q464980
USER
Which exhibition did Angela Ricci Lucchi participate in ?
(c(Q464980),P710,Q17582684)
action filter_type
action find_reverse
entity Q17582684
relation P710
type Q464980
[{'concept': 'Q464980'}, 'P710', 'Q17582684']
SELECT DISTINCT ?h WHERE { ?h property:P710 resource:Q17582684 . ?h rdf:type ontology:Q464980 }
Angela Ricci Lucchi
action filter_type
action find_reverse
entity Angela Ricci Lucchi
relation participant
type exhibition
[{'concept': 'exhibition'}, 'participant', 'Angela Ricci Lucchi']
SELECT DISTINCT ?h WHERE { ?h property:participant resource:Angela_Ricci_Lucchi . ?h rdf:type ontology:exhibition }
[]
exhibition
Q18646618
SYSTEM
The War Which Is Coming Is Not the First One
Q18646618
(c(Q464980),P710,Q17582684)
action filter_type
action find_reverse
entity Q17582684
relation P710
type Q464980
Angela Ricci Lucchi participated in [ANSWER]
[{'concept': 'Q464980'}, 'P710', 'Q17582684']
SELECT DISTINCT ?h WHERE { ?h property:P710 resource:Q17582684 . ?h rdf:type ontology:Q464980 }
The War Which Is Coming Is Not the First One
Angela Ricci Lucchi participated in The War Which Is Coming Is Not the First One
The War Which Is Coming Is Not the First One
action filter_type
action find_reverse
entity Angela Ricci Lucchi
relation participant
type exhibition
[{'concept': 'exhibition'}, 'participant', 'Angela Ricci Lucchi']
SELECT DISTINCT ?h WHERE { ?h property:participant resource:Angela_Ricci_Lucchi . ?h rdf:type ontology:exhibition }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17582684
P57
Q838948
USER
Which work of art did Angela Ricci Lucchi direct ?
(c(Q838948),P57,Q17582684)
action filter_type
action find_reverse
entity Q17582684
relation P57
type Q838948
[{'concept': 'Q838948'}, 'P57', 'Q17582684']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q838948 . ?t property:P57 resource:Q17582684 }
Angela Ricci Lucchi
action filter_type
action find_reverse
entity Angela Ricci Lucchi
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'Angela Ricci Lucchi']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:work_of_art . ?t property:director resource:Angela_Ricci_Lucchi }
[]
work of art
Q4006191
SYSTEM
Oh! Man
Q4006191
(c(Q838948),P57,Q17582684)
action filter_type
action find_reverse
entity Q17582684
relation P57
type Q838948
Angela Ricci Lucchi directed and [ANSWER]
[{'concept': 'Q838948'}, 'P57', 'Q17582684']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q838948 . ?t property:P57 resource:Q17582684 }
Oh! Man
Angela Ricci Lucchi directed and Oh! Man
Oh! Man
action filter_type
action find_reverse
entity Angela Ricci Lucchi
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'Angela Ricci Lucchi']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:work_of_art . ?t property:director resource:Angela_Ricci_Lucchi }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5074592 Q17582684
P19
Q15617994
USER
Which administrative territories were Angela Ricci Lucchi or Charl Pietersen born at ?
OR((Q17582684,P19,c(Q15617994)), (Q5074592,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q17582684
relation P19
action find
entity Q5074592
relation P19
type Q15617994
{'OR': [['Q17582684', 'P19', {'concept': 'Q15617994'}], ['Q5074592', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . { { resource:Q5074592 property:P19 ?o } UNION { resource:Q17582684 property:P19 ?o } } }
Charl Pietersen Angela Ricci Lucchi
action filter_type
action union
action find
entity Angela Ricci Lucchi
relation place of birth
action find
entity Charl Pietersen
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Angela Ricci Lucchi', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Charl Pietersen', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Charl_Pietersen property:place_of_birth ?o } UNION { resource:Angela_Ricci_Lucchi property:place_of_birth ?o } } }
[]
designation for an administrative territorial entity
Q52983 Q258
SYSTEM
Lugo, South Africa
Q52983 Q258
OR((Q17582684,P19,c(Q15617994)), (Q5074592,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q17582684
relation P19
action find
entity Q5074592
relation P19
type Q15617994
Angela Ricci Lucchi or Charl Pietersen were born in [ANSWERS]
{'OR': [['Q17582684', 'P19', {'concept': 'Q15617994'}], ['Q5074592', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . { { resource:Q5074592 property:P19 ?o } UNION { resource:Q17582684 property:P19 ?o } } }
Lugo South Africa
Angela Ricci Lucchi or Charl Pietersen were born in Lugo and South Africa
Lugo South Africa
action filter_type
action union
action find
entity Angela Ricci Lucchi
relation place of birth
action find
entity Charl Pietersen
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Angela Ricci Lucchi', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Charl Pietersen', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Charl_Pietersen property:place_of_birth ?o } UNION { resource:Angela_Ricci_Lucchi property:place_of_birth ?o } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q258
P37
Q34770
USER
What is the official language of that administrative territory ?
(Q258,P37,c(Q34770))
action filter_type
action find
entity Q258
relation P37
type Q34770
['Q258', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q34770 . resource:Q258 property:P37 ?e }
South Africa
action filter_type
action find
entity South Africa
relation official language
type language
['South Africa', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:language . resource:South_Africa property:official_language ?e }
[]
language
Clarification for simple ques.
Q52983
SYSTEM
Did you mean Lugo ?
Q52983 Q258
(Q52983,P37,c(Q34770)) (Q258,P37,c(Q34770))
[ANSWER]
['Q52983', 'P37', {'concept': 'Q34770'}] ['Q258', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q34770 . resource:Q258 property:P37 ?e }
Lugo South Africa
Did you mean Lugo ?
Lugo
['Lugo', 'official language', {'concept': 'language'}] ['South Africa', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:language . resource:South_Africa property:official_language ?e }
[]
Simple Question (Coreferenced)
USER
No, I meant South Africa. Could you tell me the answer for that?
(Q258,P37,c(Q34770))
Q258
['Q258', 'P37', {'concept': 'Q34770'}]
['South Africa', 'official language', {'concept': 'language'}]
[]
Q1860
SYSTEM
English
Q1860
(Q258,P37,c(Q34770))
action filter_type
action find
entity Q258
relation P37
type Q34770
The official language of that administrative territory is [ANSWER]
['Q258', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q34770 . resource:Q258 property:P37 ?e }
English
The official language of that administrative territory is English
English
action filter_type
action find
entity South Africa
relation official language
type language
['South Africa', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:language . resource:South_Africa property:official_language ?e }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P37
Q34770 Q15617994 Q7275
USER
Which languages are the official languages of min number of administrative territories and states ?
(c(Q15617994)|c(Q7275),P37,c(Q34770))
action argmin
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q15617994
action find_reverse_tuple_counts
relation P37
type Q34770
type Q7275
[[{'concept': 'Q15617994'}, {'concept': 'Q7275'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?z ) { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?r ) WHERE { { ?y rdf:type ontology:Q34770 . ?p rdf:type ontology:Q15617994 . ?p property:P37 ?y } UNION { ?p property:P37 ?y . ?p rdf:type ontology:Q7275 . ?y rdf:type ontology:Q34770 } } GROUP BY ?y } } . { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?v ) WHERE { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:Q15617994 ) ( ontology:Q7275 ) } } GROUP BY ?h } . FILTER ( ?v = ?z ) }
action argmin
action union
action find_reverse_tuple_counts
relation official language
type language
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation official language
type language
type state
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'state'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?z ) { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?r ) WHERE { { ?y rdf:type ontology:language . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p property:official_language ?y } UNION { ?p property:official_language ?y . ?p rdf:type ontology:state . ?y rdf:type ontology:language } } GROUP BY ?y } } . { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?v ) WHERE { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:state ) } } GROUP BY ?h } . FILTER ( ?v = ?z ) }
[]
language designation for an administrative territorial entity state
Q33251 Q35499 Q35726
SYSTEM
Church Slavonic, Old Church Slavonic, Etruscan
Q33251 Q3110592 Q36206 Q35499 Q35726 Q25164
(c(Q15617994)|c(Q7275),P37,c(Q34770))
action argmin
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q15617994
action find_reverse_tuple_counts
relation P37
type Q34770
type Q7275
[ANSWERS] are the official languages of min number of administrative territories and states
[[{'concept': 'Q15617994'}, {'concept': 'Q7275'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?z ) { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?r ) WHERE { { ?y rdf:type ontology:Q34770 . ?p rdf:type ontology:Q15617994 . ?p property:P37 ?y } UNION { ?p property:P37 ?y . ?p rdf:type ontology:Q7275 . ?y rdf:type ontology:Q34770 } } GROUP BY ?y } } . { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?v ) WHERE { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:Q15617994 ) ( ontology:Q7275 ) } } GROUP BY ?h } . FILTER ( ?v = ?z ) }
Church Slavonic written Chinese Lak Old Church Slavonic Etruscan Nynorsk
Church Slavonic, Old Church Slavonic and Etruscan are the official languages of min number of administrative territories and states
Church Slavonic Old Church Slavonic Etruscan
action argmin
action union
action find_reverse_tuple_counts
relation official language
type language
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation official language
type language
type state
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'state'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?z ) { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?r ) WHERE { { ?y rdf:type ontology:language . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p property:official_language ?y } UNION { ?p property:official_language ?y . ?p rdf:type ontology:state . ?y rdf:type ontology:language } } GROUP BY ?y } } . { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?v ) WHERE { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:state ) } } GROUP BY ?h } . FILTER ( ?v = ?z ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q258
P1532
Q6979593
USER
Which national association football teams play for South Africa ?
(c(Q6979593),P1532,Q258)
action filter_type
action find_reverse
entity Q258
relation P1532
type Q6979593
[{'concept': 'Q6979593'}, 'P1532', 'Q258']
SELECT DISTINCT ?n WHERE { ?n property:P1532 resource:Q258 . ?n rdf:type ontology:Q6979593 }
South Africa
action filter_type
action find_reverse
entity South Africa
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'South Africa']
SELECT DISTINCT ?n WHERE { ?n property:country_for_sport resource:South_Africa . ?n rdf:type ontology:national_association_football_team }
[]
national association football team
Q3589637 Q1197887
SYSTEM
South Africa Olympic football team, South Africa women's national association football team
Q3589637 Q1197887
(c(Q6979593),P1532,Q258)
action filter_type
action find_reverse
entity Q258
relation P1532
type Q6979593
And [ANSWERS] play for South Africa
[{'concept': 'Q6979593'}, 'P1532', 'Q258']
SELECT DISTINCT ?n WHERE { ?n property:P1532 resource:Q258 . ?n rdf:type ontology:Q6979593 }
South Africa Olympic football team South Africa women's national association football team
And South Africa Olympic football team and South Africa women's national association football team play for South Africa
South Africa Olympic football team South Africa women's national association football team
action filter_type
action find_reverse
entity South Africa
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'South Africa']
SELECT DISTINCT ?n WHERE { ?n property:country_for_sport resource:South_Africa . ?n rdf:type ontology:national_association_football_team }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3589637
P641
Q349
USER
Which sport did that national association football team participate in ?
(Q3589637,P641,c(Q349))
action filter_type
action find
entity Q3589637
relation P641
type Q349
['Q3589637', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { resource:Q3589637 property:P641 ?g . ?g rdf:type ontology:Q349 }
South Africa Olympic football team
action filter_type
action find
entity South Africa Olympic football team
relation sport
type sport
['South Africa Olympic football team', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { resource:South_Africa_Olympic_football_team property:sport ?g . ?g rdf:type ontology:sport }
[]
sport
Clarification for simple ques.
Q3589637
SYSTEM
Did you mean South Africa Olympic football team ?
Q3589637 Q1197887
(Q3589637,P641,c(Q349)) (Q1197887,P641,c(Q349))
[ANSWER]
['Q3589637', 'P641', {'concept': 'Q349'}] ['Q1197887', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { resource:Q3589637 property:P641 ?g . ?g rdf:type ontology:Q349 }
South Africa Olympic football team South Africa women's national association football team
Did you mean South Africa Olympic football team ?
South Africa Olympic football team
['South Africa Olympic football team', 'sport', {'concept': 'sport'}] ["South Africa women's national association football team", 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { resource:South_Africa_Olympic_football_team property:sport ?g . ?g rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
USER
Yes
(Q3589637,P641,c(Q349))
['Q3589637', 'P641', {'concept': 'Q349'}]
['South Africa Olympic football team', 'sport', {'concept': 'sport'}]
[]
Q2736
SYSTEM
association football
Q2736
(Q3589637,P641,c(Q349))
action filter_type
action find
entity Q3589637
relation P641
type Q349
That national [ANSWER] team participated national [ANSWER]
['Q3589637', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { resource:Q3589637 property:P641 ?g . ?g rdf:type ontology:Q349 }
association football
That national association football team participated national association football
association football
action filter_type
action find
entity South Africa Olympic football team
relation sport
type sport
['South Africa Olympic football team', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { resource:South_Africa_Olympic_football_team property:sport ?g . ?g rdf:type ontology:sport }
[]