Simple Question (Direct)
Simple Question
Q22131906
P27
Q15617994
USER
Which administrative territory does Younes Alaiwi belong to ?
(Q22131906,P27,c(Q15617994))
action filter_type
action find
entity Q22131906
relation P27
type Q15617994
['Q22131906', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q22131906 property:P27 ?p }
Younes Alaiwi
action filter_type
action find
entity Younes Alaiwi
relation country of citizenship
type designation for an administrative territorial entity
['Younes Alaiwi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Younes_Alaiwi property:country_of_citizenship ?p }
[]
designation for an administrative territorial entity
Q851
SYSTEM
Saudi Arabia
Q851
(Q22131906,P27,c(Q15617994))
action filter_type
action find
entity Q22131906
relation P27
type Q15617994
Younes Alaiwi belongs to [ANSWER]
['Q22131906', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q22131906 property:P27 ?p }
Saudi Arabia
Younes Alaiwi belongs to Saudi Arabia
Saudi Arabia
action filter_type
action find
entity Younes Alaiwi
relation country of citizenship
type designation for an administrative territorial entity
['Younes Alaiwi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Younes_Alaiwi property:country_of_citizenship ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q22131906
P21
Q290
USER
Which sex does that person belong to ?
(Q851,P21,c(Q290))
action filter_type
action find
entity Q22131906
relation P21
type Q290
['Q851', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q22131906 property:P21 ?b . ?b rdf:type ontology:Q290 }
Younes Alaiwi
action filter_type
action find
entity Younes Alaiwi
relation gender
type sex
['Saudi Arabia', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Younes_Alaiwi property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q851,P21,c(Q290))
action filter_type
action find
entity Q22131906
relation P21
type Q290
That person belongs to [ANSWER]
['Q851', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q22131906 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Younes Alaiwi
relation gender
type sex
['Saudi Arabia', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Younes_Alaiwi property:gender ?b . ?b rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P138
Q11173 Q3977918
USER
How many chemical compounds and mineral supergroupss come from that sex ?
(c(Q11173),P138,Q6581097) (c(Q3977918),P138,Q6581097) (c(Q11173),P138,Q6581097) (c(Q3977918),P138,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q11173
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q3977918
[{'concept': 'Q11173'}, 'P138', 'Q6581097'] [{'concept': 'Q3977918'}, 'P138', 'Q6581097'] [{'concept': 'Q11173'}, 'P138', 'Q6581097'] [{'concept': 'Q3977918'}, 'P138', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { { ?v property:P138 resource:Q6581097 . ?v rdf:type ontology:Q11173 } UNION { ?v property:P138 resource:Q6581097 . ?v rdf:type ontology:Q3977918 } }
action count
action union
action filter_type
action find_reverse
entity male
relation named after
type chemical compound
action filter_type
action find_reverse
entity male
relation named after
type mineral supergroups
[{'concept': 'chemical compound'}, 'named after', 'male'] [{'concept': 'mineral supergroups'}, 'named after', 'male'] [{'concept': 'chemical compound'}, 'named after', 'male'] [{'concept': 'mineral supergroups'}, 'named after', 'male']
SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { { ?v property:named_after resource:male . ?v rdf:type ontology:chemical_compound } UNION { ?v property:named_after resource:male . ?v rdf:type ontology:mineral_supergroups } }
[]
chemical compound mineral supergroups
SYSTEM
1 chemical compounds and 1 mineral supergroupss
Q19861994 Q19861203
(c(Q11173),P138,Q6581097) (c(Q3977918),P138,Q6581097) (c(Q11173),P138,Q6581097) (c(Q3977918),P138,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q11173
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q3977918
[ANSWER]
[{'concept': 'Q11173'}, 'P138', 'Q6581097'] [{'concept': 'Q3977918'}, 'P138', 'Q6581097'] [{'concept': 'Q11173'}, 'P138', 'Q6581097'] [{'concept': 'Q3977918'}, 'P138', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { { ?v property:P138 resource:Q6581097 . ?v rdf:type ontology:Q11173 } UNION { ?v property:P138 resource:Q6581097 . ?v rdf:type ontology:Q3977918 } }
tazzoliite postite
1 chemical compounds and 1 mineral supergroupss
action count
action union
action filter_type
action find_reverse
entity male
relation named after
type chemical compound
action filter_type
action find_reverse
entity male
relation named after
type mineral supergroups
[{'concept': 'chemical compound'}, 'named after', 'male'] [{'concept': 'mineral supergroups'}, 'named after', 'male'] [{'concept': 'chemical compound'}, 'named after', 'male'] [{'concept': 'mineral supergroups'}, 'named after', 'male']
SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { { ?v property:named_after resource:male . ?v rdf:type ontology:chemical_compound } UNION { ?v property:named_after resource:male . ?v rdf:type ontology:mineral_supergroups } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q851
P47
Q183366 Q56061
USER
How many territories and administrative territories are bordered by Saudi Arabia ?
(Q851,P47,c(Q183366)) (Q851,P47,c(Q56061))
action count
action union
action filter_type
action find
entity Q851
relation P47
type Q183366
action filter_type
action find
entity Q851
relation P47
type Q56061
['Q851', 'P47', {'concept': 'Q183366'}] ['Q851', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) WHERE { { ?k rdf:type ontology:Q183366 . resource:Q851 property:P47 ?k } UNION { resource:Q851 property:P47 ?k . ?k rdf:type ontology:Q56061 } }
Saudi Arabia
action count
action union
action filter_type
action find
entity Saudi Arabia
relation shares border with
type territory
action filter_type
action find
entity Saudi Arabia
relation shares border with
type administrative territorial entity
['Saudi Arabia', 'shares border with', {'concept': 'territory'}] ['Saudi Arabia', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) WHERE { { ?k rdf:type ontology:territory . resource:Saudi_Arabia property:shares_border_with ?k } UNION { resource:Saudi_Arabia property:shares_border_with ?k . ?k rdf:type ontology:administrative_territorial_entity } }
[]
territory administrative territorial entity
SYSTEM
1 territories and 1 administrative territories
Q74091 Q846
(Q851,P47,c(Q183366)) (Q851,P47,c(Q56061))
action count
action union
action filter_type
action find
entity Q851
relation P47
type Q183366
action filter_type
action find
entity Q851
relation P47
type Q56061
[ANSWER]
['Q851', 'P47', {'concept': 'Q183366'}] ['Q851', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) WHERE { { ?k rdf:type ontology:Q183366 . resource:Q851 property:P47 ?k } UNION { resource:Q851 property:P47 ?k . ?k rdf:type ontology:Q56061 } }
Saudi–Kuwaiti Neutral Zone Qatar
1 territories and 1 administrative territories
action count
action union
action filter_type
action find
entity Saudi Arabia
relation shares border with
type territory
action filter_type
action find
entity Saudi Arabia
relation shares border with
type administrative territorial entity
['Saudi Arabia', 'shares border with', {'concept': 'territory'}] ['Saudi Arabia', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) WHERE { { ?k rdf:type ontology:territory . resource:Saudi_Arabia property:shares_border_with ?k } UNION { resource:Saudi_Arabia property:shares_border_with ?k . ?k rdf:type ontology:administrative_territorial_entity } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q33
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with less number of administrative territories than Finland ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q33
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?c ) WHERE { ?q property:P530 ?b . ?b rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { ?w property:P530 resource:Q33 . ?w rdf:type ontology:Q15617994 } } . FILTER ( ?c < ?k ) }
Finland
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Finland
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?c ) WHERE { ?q property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { ?w property:diplomatic_relation resource:Finland . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?c < ?k ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q218 Q20 Q948
SYSTEM
Romania, Norway, Tunisia
Q702 Q804 Q783 Q784 Q265 Q712 Q710 Q837 Q657 Q792 Q790 Q986 Q242 Q244 Q811 Q929 Q29999 Q854 Q819 Q424 Q730 Q1013 Q232 Q238 Q20 Q1045 Q1041 Q921 Q1027 Q1020 Q842 Q1028 Q786 Q1036 Q1037 Q1032 Q965 Q967 Q962 Q697 Q695 Q117 Q754 Q218 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q970 Q683 Q34020 Q686 Q836 Q574 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q33
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with less number of administrative territories than Finland
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?c ) WHERE { ?q property:P530 ?b . ?b rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { ?w property:P530 resource:Q33 . ?w rdf:type ontology:Q15617994 } } . FILTER ( ?c < ?k ) }
Federated States of Micronesia Panama Honduras Dominica Uzbekistan Fiji Kiribati Nepal Chad El Salvador Haiti Eritrea Belize Barbados Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Kazakhstan San Marino Norway Somalia Senegal Brunei Mauritius Malawi Oman Morocco Dominican Republic Uganda Rwanda Niger Burkina Faso Burundi Benin Nauru Palau Ghana Trinidad and Tobago Romania Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Comoros Samoa Niue Vanuatu Myanmar East Timor Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia
Romania, Norway and Tunisia have diplomatic relations with less number of administrative territories than Finland
Romania Norway Tunisia
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Finland
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?c ) WHERE { ?q property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { ?w property:diplomatic_relation resource:Finland . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?c < ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q20
P530
Q15617994 Q15617994
USER
And what about Norway?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q20
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?v ) WHERE { ?k rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 . ?k property:P530 ?i } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { resource:Q20 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } . FILTER ( ?v < ?w ) }
Norway
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Norway
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?v ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:diplomatic_relation ?i } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { resource:Norway property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v < ?w ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q929 Q29999 Q232
SYSTEM
Central African Republic, Kingdom of the Netherlands, Kazakhstan
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q20
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?v ) WHERE { ?k rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 . ?k property:P530 ?i } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { resource:Q20 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } . FILTER ( ?v < ?w ) }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic Kingdom of the Netherlands Kazakhstan
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Norway
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?v ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:diplomatic_relation ?i } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { resource:Norway property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v < ?w ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q929 Q29999 Q232
P163
Q14660
USER
Which flags are associated with Central African Republic, Kingdom of the Netherlands and Kazakhstan ?
(Q929,P163,c(Q14660)) (Q29999,P163,c(Q14660)) (Q232,P163,c(Q14660))
action union
action filter_type
action find
entity Q929
relation P163
type Q14660
action filter_type
action find
entity Q29999
relation P163
type Q14660
action filter_type
action find
entity Q232
relation P163
type Q14660
['Q929', 'P163', {'concept': 'Q14660'}] ['Q29999', 'P163', {'concept': 'Q14660'}] ['Q232', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?x WHERE { { ?x rdf:type ontology:Q14660 . resource:Q929 property:P163 ?x } UNION { resource:Q29999 property:P163 ?x . ?x rdf:type ontology:Q14660 } }
Central African Republic Kingdom of the Netherlands Kazakhstan
action union
action filter_type
action find
entity Central African Republic
relation flag
type flag
action filter_type
action find
entity Kingdom of the Netherlands
relation flag
type flag
action filter_type
action find
entity Kazakhstan
relation flag
type flag
['Central African Republic', 'flag', {'concept': 'flag'}] ['Kingdom of the Netherlands', 'flag', {'concept': 'flag'}] ['Kazakhstan', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?x WHERE { { ?x rdf:type ontology:flag . resource:Central_African_Republic property:flag ?x } UNION { resource:Kingdom_of_the_Netherlands property:flag ?x . ?x rdf:type ontology:flag } }
[]
flag
Q165775 Q46585 Q131650
SYSTEM
Flag of the Central African Republic, flag of the Netherlands, flag of Kazakhstan
Q165775 Q46585 Q131650
(Q929,P163,c(Q14660)) (Q29999,P163,c(Q14660)) (Q232,P163,c(Q14660))
action union
action filter_type
action find
entity Q929
relation P163
type Q14660
action filter_type
action find
entity Q29999
relation P163
type Q14660
action filter_type
action find
entity Q232
relation P163
type Q14660
[ANSWERS] are associated with Central African Republic, Kingdom of the Netherlands and Kazakhstan
['Q929', 'P163', {'concept': 'Q14660'}] ['Q29999', 'P163', {'concept': 'Q14660'}] ['Q232', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?x WHERE { { ?x rdf:type ontology:Q14660 . resource:Q929 property:P163 ?x } UNION { resource:Q29999 property:P163 ?x . ?x rdf:type ontology:Q14660 } }
Flag of the Central African Republic flag of the Netherlands flag of Kazakhstan
Flag of the Central African Republic, flag of the Netherlands and flag of Kazakhstan are associated with Central African Republic, Kingdom of the Netherlands and Kazakhstan
Flag of the Central African Republic flag of the Netherlands flag of Kazakhstan
action union
action filter_type
action find
entity Central African Republic
relation flag
type flag
action filter_type
action find
entity Kingdom of the Netherlands
relation flag
type flag
action filter_type
action find
entity Kazakhstan
relation flag
type flag
['Central African Republic', 'flag', {'concept': 'flag'}] ['Kingdom of the Netherlands', 'flag', {'concept': 'flag'}] ['Kazakhstan', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?x WHERE { { ?x rdf:type ontology:flag . resource:Central_African_Republic property:flag ?x } UNION { resource:Kingdom_of_the_Netherlands property:flag ?x . ?x rdf:type ontology:flag } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q10833314
P641
Q349
USER
Which sport did tennis player participate in ?
(Q10833314,P641,c(Q349))
action filter_type
action find
entity Q10833314
relation P641
type Q349
['Q10833314', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?x WHERE { resource:Q10833314 property:P641 ?x . ?x rdf:type ontology:Q349 }
tennis player
action filter_type
action find
entity tennis player
relation sport
type sport
['tennis player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?x WHERE { resource:tennis_player property:sport ?x . ?x rdf:type ontology:sport }
[]
sport
Q847
SYSTEM
tennis
Q847
(Q10833314,P641,c(Q349))
action filter_type
action find
entity Q10833314
relation P641
type Q349
[ANSWER] player participated in [ANSWER]
['Q10833314', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?x WHERE { resource:Q10833314 property:P641 ?x . ?x rdf:type ontology:Q349 }
tennis
Tennis player participated in tennis
tennis
action filter_type
action find
entity tennis player
relation sport
type sport
['tennis player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?x WHERE { resource:tennis_player property:sport ?x . ?x rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q232
P17
Q15617994
USER
Which administrative territory is Kazakhstan located in ?
(Q232,P17,c(Q15617994))
action filter_type
action find
entity Q232
relation P17
type Q15617994
['Q232', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q232 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
Kazakhstan
action filter_type
action find
entity Kazakhstan
relation country
type designation for an administrative territorial entity
['Kazakhstan', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Kazakhstan property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q232
SYSTEM
Kazakhstan
Q232
(Q232,P17,c(Q15617994))
action filter_type
action find
entity Q232
relation P17
type Q15617994
[ANSWER] is located in [ANSWER]
['Q232', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q232 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
Kazakhstan
Kazakhstan is located in Kazakhstan
Kazakhstan
action filter_type
action find
entity Kazakhstan
relation country
type designation for an administrative territorial entity
['Kazakhstan', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Kazakhstan property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q232
P740
Q2088357
USER
Which musical ensemble was formed at that administrative territory ?
(c(Q2088357),P740,Q232)
action filter_type
action find_reverse
entity Q232
relation P740
type Q2088357
[{'concept': 'Q2088357'}, 'P740', 'Q232']
SELECT DISTINCT ?m WHERE { ?m property:P740 resource:Q232 . ?m rdf:type ontology:Q2088357 }
Kazakhstan
action filter_type
action find_reverse
entity Kazakhstan
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Kazakhstan']
SELECT DISTINCT ?m WHERE { ?m property:location_of_formation resource:Kazakhstan . ?m rdf:type ontology:musical_ensemble }
[]
musical ensemble
Q1093161
SYSTEM
Ulytau
Q1093161
(c(Q2088357),P740,Q232)
action filter_type
action find_reverse
entity Q232
relation P740
type Q2088357
[ANSWER] was formed at that administrative territory
[{'concept': 'Q2088357'}, 'P740', 'Q232']
SELECT DISTINCT ?m WHERE { ?m property:P740 resource:Q232 . ?m rdf:type ontology:Q2088357 }
Ulytau
Ulytau was formed at that administrative territory
Ulytau
action filter_type
action find_reverse
entity Kazakhstan
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Kazakhstan']
SELECT DISTINCT ?m WHERE { ?m property:location_of_formation resource:Kazakhstan . ?m rdf:type ontology:musical_ensemble }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1093161 Q232 Q105256
P740
Q15617994
USER
Was that musical ensemble formed at Kazakhstan and Montichiari ?
(Q1093161,P740,Q232) (Q1093161,P740,Q105256)
action is_in
entity Q1093161
action intersection
action find_reverse
entity Q232
relation P740
action find_reverse
entity Q105256
relation P740
['Q1093161', 'P740', 'Q232'] ['Q1093161', 'P740', 'Q105256']
ASK WHERE { resource:Q1093161 property:P740 resource:Q232 . resource:Q1093161 property:P740 resource:Q105256 }
Ulytau Kazakhstan Montichiari
action is_in
entity Ulytau
action intersection
action find_reverse
entity Kazakhstan
relation location of formation
action find_reverse
entity Montichiari
relation location of formation
['Ulytau', 'location of formation', 'Kazakhstan'] ['Ulytau', 'location of formation', 'Montichiari']
ASK WHERE { resource:Ulytau property:location_of_formation resource:Kazakhstan . resource:Ulytau property:location_of_formation resource:Montichiari }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q1093161,P740,Q232) (Q1093161,P740,Q105256)
action is_in
entity Q1093161
action intersection
action find_reverse
entity Q232
relation P740
action find_reverse
entity Q105256
relation P740
[ANSWER]
['Q1093161', 'P740', 'Q232'] ['Q1093161', 'P740', 'Q105256']
ASK WHERE { resource:Q1093161 property:P740 resource:Q232 . resource:Q1093161 property:P740 resource:Q105256 }
YES and NO respectively
action is_in
entity Ulytau
action intersection
action find_reverse
entity Kazakhstan
relation location of formation
action find_reverse
entity Montichiari
relation location of formation
['Ulytau', 'location of formation', 'Kazakhstan'] ['Ulytau', 'location of formation', 'Montichiari']
ASK WHERE { resource:Ulytau property:location_of_formation resource:Kazakhstan . resource:Ulytau property:location_of_formation resource:Montichiari }
[]