Simple Question (Direct)
Simple Question
Q4829022
P21
Q290
USER
What is the sex of Aviv Azaria ?
(Q4829022,P21,c(Q290))
action filter_type
action find
entity Q4829022
relation P21
type Q290
['Q4829022', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q290 . resource:Q4829022 property:P21 ?m }
Aviv Azaria
action filter_type
action find
entity Aviv Azaria
relation gender
type sex
['Aviv Azaria', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sex . resource:Aviv_Azaria property:gender ?m }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4829022,P21,c(Q290))
action filter_type
action find
entity Q4829022
relation P21
type Q290
The sex of Aviv Azaria is the [ANSWER]
['Q4829022', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q290 . resource:Q4829022 property:P21 ?m }
male
The sex of Aviv Azaria is the male
male
action filter_type
action find
entity Aviv Azaria
relation gender
type sex
['Aviv Azaria', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sex . resource:Aviv_Azaria property:gender ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4829022
P19
Q56061
USER
Which administrative territory is the birthplace of that person ?
(Q6581097,P19,c(Q56061))
action filter_type
action find
entity Q4829022
relation P19
type Q56061
['Q6581097', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q4829022 property:P19 ?y . ?y rdf:type ontology:Q56061 }
Aviv Azaria
action filter_type
action find
entity Aviv Azaria
relation place of birth
type administrative territorial entity
['male', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Aviv_Azaria property:place_of_birth ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q192225
SYSTEM
Netanya
Q192225
(Q6581097,P19,c(Q56061))
action filter_type
action find
entity Q4829022
relation P19
type Q56061
[ANSWER] is the birthplace of that person
['Q6581097', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q4829022 property:P19 ?y . ?y rdf:type ontology:Q56061 }
Netanya
Netanya is the birthplace of that person
Netanya
action filter_type
action find
entity Aviv Azaria
relation place of birth
type administrative territorial entity
['male', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Aviv_Azaria property:place_of_birth ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q4829022 Q4931648
P54
Q12973014
USER
How many sports teams are Aviv Azaria or Bob Allen a member of ?
(Q4829022,P54,c(Q12973014)) (Q4931648,P54,c(Q12973014))
action count
action union
action filter_type
action find
entity Q4829022
relation P54
type Q12973014
action filter_type
action find
entity Q4931648
relation P54
type Q12973014
['Q4829022', 'P54', {'concept': 'Q12973014'}] ['Q4931648', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { ?l property:P54 ?g . VALUES ( ?l ) { ( resource:Q4829022 ) ( resource:Q4931648 ) } }
Aviv Azaria Bob Allen
action count
action union
action filter_type
action find
entity Aviv Azaria
relation member of sports team
type sports team
action filter_type
action find
entity Bob Allen
relation member of sports team
type sports team
['Aviv Azaria', 'member of sports team', {'concept': 'sports team'}] ['Bob Allen', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { ?l property:member_of_sports_team ?g . VALUES ( ?l ) { ( resource:Aviv_Azaria ) ( resource:Bob_Allen ) } }
[]
sports team
SYSTEM
3
Q650840 Q6868005 Q826751
(Q4829022,P54,c(Q12973014)) (Q4931648,P54,c(Q12973014))
action count
action union
action filter_type
action find
entity Q4829022
relation P54
type Q12973014
action filter_type
action find
entity Q4931648
relation P54
type Q12973014
[ANSWER]
['Q4829022', 'P54', {'concept': 'Q12973014'}] ['Q4931648', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { ?l property:P54 ?g . VALUES ( ?l ) { ( resource:Q4829022 ) ( resource:Q4931648 ) } }
Philadelphia Phillies Minneapolis Millers Cincinnati Reds
3
action count
action union
action filter_type
action find
entity Aviv Azaria
relation member of sports team
type sports team
action filter_type
action find
entity Bob Allen
relation member of sports team
type sports team
['Aviv Azaria', 'member of sports team', {'concept': 'sports team'}] ['Bob Allen', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { ?l property:member_of_sports_team ?g . VALUES ( ?l ) { ( resource:Aviv_Azaria ) ( resource:Bob_Allen ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q192225
P137
Q811979 Q483110
USER
How many architectural structures and stadia were operated by Netanya ?
(c(Q811979),P137,Q192225) (c(Q483110),P137,Q192225)
action count
action union
action filter_type
action find_reverse
entity Q192225
relation P137
type Q811979
action filter_type
action find_reverse
entity Q192225
relation P137
type Q483110
[{'concept': 'Q811979'}, 'P137', 'Q192225'] [{'concept': 'Q483110'}, 'P137', 'Q192225']
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { VALUES ( ?r ) { ( ontology:Q483110 ) ( ontology:Q811979 ) } . ?i rdf:type ?r }
Netanya
action count
action union
action filter_type
action find_reverse
entity Netanya
relation operator
type architectural structure
action filter_type
action find_reverse
entity Netanya
relation operator
type stadium
[{'concept': 'architectural structure'}, 'operator', 'Netanya'] [{'concept': 'stadium'}, 'operator', 'Netanya']
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { VALUES ( ?r ) { ( ontology:stadium ) ( ontology:architectural_structure ) } . ?i rdf:type ?r }
[]
architectural structure stadium
SYSTEM
1 architectural structures and 1 stadia
Q2911288 Q8052910
(c(Q811979),P137,Q192225) (c(Q483110),P137,Q192225)
action count
action union
action filter_type
action find_reverse
entity Q192225
relation P137
type Q811979
action filter_type
action find_reverse
entity Q192225
relation P137
type Q483110
[ANSWER]
[{'concept': 'Q811979'}, 'P137', 'Q192225'] [{'concept': 'Q483110'}, 'P137', 'Q192225']
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { VALUES ( ?r ) { ( ontology:Q483110 ) ( ontology:Q811979 ) } . ?i rdf:type ?r }
Sar-Tov Stadium Yeshurun Hall
1 architectural structures and 1 stadia
action count
action union
action filter_type
action find_reverse
entity Netanya
relation operator
type architectural structure
action filter_type
action find_reverse
entity Netanya
relation operator
type stadium
[{'concept': 'architectural structure'}, 'operator', 'Netanya'] [{'concept': 'stadium'}, 'operator', 'Netanya']
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { VALUES ( ?r ) { ( ontology:stadium ) ( ontology:architectural_structure ) } . ?i rdf:type ?r }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1144734 Q4829022
P27 P17
Q15617994
USER
Which administrative territories are Aviv Azaria a civilian of or are Genting Highlands located in ?
OR((Q4829022,P27,c(Q15617994)), (Q1144734,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q4829022
relation P27
action find
entity Q1144734
relation P17
type Q15617994
{'OR': [['Q4829022', 'P27', {'concept': 'Q15617994'}], ['Q1144734', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q1144734 property:P17 ?l } UNION { resource:Q4829022 property:P27 ?l } } . ?l rdf:type ontology:Q15617994 }
Genting Highlands Aviv Azaria
action filter_type
action union
action find
entity Aviv Azaria
relation country of citizenship
action find
entity Genting Highlands
relation country
type designation for an administrative territorial entity
{'OR': [['Aviv Azaria', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Genting Highlands', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Genting_Highlands property:country ?l } UNION { resource:Aviv_Azaria property:country_of_citizenship ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q833 Q801
SYSTEM
Malaysia, Israel
Q833 Q801
OR((Q4829022,P27,c(Q15617994)), (Q1144734,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q4829022
relation P27
action find
entity Q1144734
relation P17
type Q15617994
[ANSWERS] are Aviv Azaria a civilian of or are Genting Highlands located in
{'OR': [['Q4829022', 'P27', {'concept': 'Q15617994'}], ['Q1144734', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q1144734 property:P17 ?l } UNION { resource:Q4829022 property:P27 ?l } } . ?l rdf:type ontology:Q15617994 }
Malaysia Israel
Malaysia and Israel are Aviv Azaria a civilian of or are Genting Highlands located in
Malaysia Israel
action filter_type
action union
action find
entity Aviv Azaria
relation country of citizenship
action find
entity Genting Highlands
relation country
type designation for an administrative territorial entity
{'OR': [['Aviv Azaria', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Genting Highlands', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Genting_Highlands property:country ?l } UNION { resource:Aviv_Azaria property:country_of_citizenship ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q184
P530
Q15617994
USER
Do Belarus have tactful political relations with those ones ?
(Q184,P530,Q833) (Q184,P530,Q801)
action is_in
entity prev_answer
action find
entity Q184
relation P530
['Q184', 'P530', 'Q833'] ['Q184', 'P530', 'Q801']
ASK WHERE { resource:Q184 property:P530 ?s . VALUES ( ?s ) { ( resource:Q833 ) ( resource:Q801 ) } }
Belarus
action is_in
entity prev_answer
action find
entity Belarus
relation diplomatic relation
['Belarus', 'diplomatic relation', 'Malaysia'] ['Belarus', 'diplomatic relation', 'Israel']
ASK WHERE { resource:Belarus property:diplomatic_relation ?s . VALUES ( ?s ) { ( resource:Malaysia ) ( resource:Israel ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q184,P530,Q833) (Q184,P530,Q801)
action is_in
entity prev_answer
action find
entity Q184
relation P530
[ANSWER]
['Q184', 'P530', 'Q833'] ['Q184', 'P530', 'Q801']
ASK WHERE { resource:Q184 property:P530 ?s . VALUES ( ?s ) { ( resource:Q833 ) ( resource:Q801 ) } }
Yes
action is_in
entity prev_answer
action find
entity Belarus
relation diplomatic relation
['Belarus', 'diplomatic relation', 'Malaysia'] ['Belarus', 'diplomatic relation', 'Israel']
ASK WHERE { resource:Belarus property:diplomatic_relation ?s . VALUES ( ?s ) { ( resource:Malaysia ) ( resource:Israel ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18392993 Q4829022
P27
Q15617994
USER
Which administrative territories are Aviv Azaria or Stefan Milojević an inhabitant of ?
OR((Q4829022,P27,c(Q15617994)), (Q18392993,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4829022
relation P27
action find
entity Q18392993
relation P27
type Q15617994
{'OR': [['Q4829022', 'P27', {'concept': 'Q15617994'}], ['Q18392993', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { { resource:Q18392993 property:P27 ?x } UNION { resource:Q4829022 property:P27 ?x } } }
Stefan Milojević Aviv Azaria
action filter_type
action union
action find
entity Aviv Azaria
relation country of citizenship
action find
entity Stefan Milojević
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Aviv Azaria', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Stefan Milojević', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Stefan_Milojević property:country_of_citizenship ?x } UNION { resource:Aviv_Azaria property:country_of_citizenship ?x } } }
[]
designation for an administrative territorial entity
Q403 Q801
SYSTEM
Serbia, Israel
Q403 Q801
OR((Q4829022,P27,c(Q15617994)), (Q18392993,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4829022
relation P27
action find
entity Q18392993
relation P27
type Q15617994
[ANSWERS] are Aviv Azaria or Stefan Milojević an inhabitant of
{'OR': [['Q4829022', 'P27', {'concept': 'Q15617994'}], ['Q18392993', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { { resource:Q18392993 property:P27 ?x } UNION { resource:Q4829022 property:P27 ?x } } }
Serbia Israel
Serbia and Israel are Aviv Azaria or Stefan Milojević an inhabitant of
Serbia Israel
action filter_type
action union
action find
entity Aviv Azaria
relation country of citizenship
action find
entity Stefan Milojević
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Aviv Azaria', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Stefan Milojević', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Stefan_Milojević property:country_of_citizenship ?x } UNION { resource:Aviv_Azaria property:country_of_citizenship ?x } } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P530
Q15617994
USER
How many administrative territories have a diplomatic relationship with that administrative territory ?
(Q801,P530,c(Q15617994))
['Q801', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q234180 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
['Israel', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Israel property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q403
SYSTEM
Did you mean Serbia ?
(Q403,P530,c(Q15617994)) (Q801,P530,c(Q15617994))
[ANSWER]
['Q403', 'P530', {'concept': 'Q15617994'}] ['Q801', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q234180 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Serbia ?
Serbia
['Serbia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Israel', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Israel property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Israel. Could you tell me the answer for that?
(Q801,P530,c(Q15617994))
Q801
['Q801', 'P530', {'concept': 'Q15617994'}]
['Israel', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
19
Q805 Q822 Q668 Q142 Q145 Q148 Q17 Q79 Q38 Q858 Q810 Q30 Q213 Q159 Q43 Q41 Q155 Q794 Q884
(Q801,P530,c(Q15617994))
[ANSWER]
['Q801', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q234180 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Yemen Lebanon India France United Kingdom People's Republic of China Japan Egypt Italy Syria Jordan United States of America Czech Republic Russia Turkey Greece Brazil Iran South Korea
19
['Israel', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Israel property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]