Simple Question (Direct)
Simple Question
Q18216987
P21
Q290
USER
Which sex does Terry Melling possess ?
(Q18216987,P21,c(Q290))
action filter_type
action find
entity Q18216987
relation P21
type Q290
['Q18216987', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q18216987 property:P21 ?h . ?h rdf:type ontology:Q290 }
Terry Melling
action filter_type
action find
entity Terry Melling
relation gender
type sex
['Terry Melling', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Terry_Melling property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q18216987,P21,c(Q290))
action filter_type
action find
entity Q18216987
relation P21
type Q290
Terry Melling possesses un [ANSWER]
['Q18216987', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q18216987 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
Terry Melling possesses un male
male
action filter_type
action find
entity Terry Melling
relation gender
type sex
['Terry Melling', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Terry_Melling property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18216987
P641
Q349
USER
What did that person participate in ?
(Q6581097,P641,c(Q349))
action filter_type
action find
entity Q18216987
relation P641
type Q349
['Q6581097', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { resource:Q18216987 property:P641 ?i . ?i rdf:type ontology:Q349 }
Terry Melling
action filter_type
action find
entity Terry Melling
relation sport
type sport
['male', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { resource:Terry_Melling property:sport ?i . ?i rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q6581097,P641,c(Q349))
action filter_type
action find
entity Q18216987
relation P641
type Q349
That person participated in [ANSWER]
['Q6581097', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { resource:Q18216987 property:P641 ?i . ?i rdf:type ontology:Q349 }
association football
That person participated in association football
association football
action filter_type
action find
entity Terry Melling
relation sport
type sport
['male', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { resource:Terry_Melling property:sport ?i . ?i rdf:type ontology:sport }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P101
Q349 Q502895 Q2342494
USER
How many sports are the area of around the same number of people and collectables as that sport ?
(c(Q502895)|c(Q2342494),P101,c(Q349))
action count
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q349
type Q502895
action find_reverse_tuple_counts
relation P101
type Q349
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P101
type Q502895
type Q2342494
[[{'concept': 'Q502895'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?w ) WHERE { { ?v property:P101 ?g . ?g rdf:type ontology:Q349 . ?v rdf:type ontology:Q502895 } UNION { ?v property:P101 ?g . ?v rdf:type ontology:Q2342494 . ?g rdf:type ontology:Q349 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { ?z property:P101 resource:Q2736 . { { ?z rdf:type ontology:Q502895 } UNION { ?z rdf:type ontology:Q2342494 } } } } . FILTER ( ?w = ?s ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation field of work
type sport
type common name
action find_reverse_tuple_counts
relation field of work
type sport
type collectable
action count
action filter_multi_types
action find_reverse
entity association football
relation field of work
type common name
type collectable
[[{'concept': 'common name'}, {'concept': 'collectable'}], 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?w ) WHERE { { ?v property:field_of_work ?g . ?g rdf:type ontology:sport . ?v rdf:type ontology:common_name } UNION { ?v property:field_of_work ?g . ?v rdf:type ontology:collectable . ?g rdf:type ontology:sport } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { ?z property:field_of_work resource:association_football . { { ?z rdf:type ontology:common_name } UNION { ?z rdf:type ontology:collectable } } } } . FILTER ( ?w = ?s ) }
[]
sport common name collectable
SYSTEM
2
Q31920 Q2736
(c(Q502895)|c(Q2342494),P101,c(Q349))
action count
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q349
type Q502895
action find_reverse_tuple_counts
relation P101
type Q349
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P101
type Q502895
type Q2342494
[ANSWER]
[[{'concept': 'Q502895'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?w ) WHERE { { ?v property:P101 ?g . ?g rdf:type ontology:Q349 . ?v rdf:type ontology:Q502895 } UNION { ?v property:P101 ?g . ?v rdf:type ontology:Q2342494 . ?g rdf:type ontology:Q349 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { ?z property:P101 resource:Q2736 . { { ?z rdf:type ontology:Q502895 } UNION { ?z rdf:type ontology:Q2342494 } } } } . FILTER ( ?w = ?s ) }
swimming association football
2
action count
action approx
action union
action find_reverse_tuple_counts
relation field of work
type sport
type common name
action find_reverse_tuple_counts
relation field of work
type sport
type collectable
action count
action filter_multi_types
action find_reverse
entity association football
relation field of work
type common name
type collectable
[[{'concept': 'common name'}, {'concept': 'collectable'}], 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?w ) WHERE { { ?v property:field_of_work ?g . ?g rdf:type ontology:sport . ?v rdf:type ontology:common_name } UNION { ?v property:field_of_work ?g . ?v rdf:type ontology:collectable . ?g rdf:type ontology:sport } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { ?z property:field_of_work resource:association_football . { { ?z rdf:type ontology:common_name } UNION { ?z rdf:type ontology:collectable } } } } . FILTER ( ?w = ?s ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q20462151 Q18216987
P27 P17
Q15617994
USER
Which administrative territories are the countries of citizenship of Terry Melling or are Gorizia Airport present in ?
OR((Q18216987,P27,c(Q15617994)), (Q20462151,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q18216987
relation P27
action find
entity Q20462151
relation P17
type Q15617994
{'OR': [['Q18216987', 'P27', {'concept': 'Q15617994'}], ['Q20462151', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q18216987 property:P27 ?k } UNION { resource:Q20462151 property:P17 ?k } } . ?k rdf:type ontology:Q15617994 }
Gorizia Airport Terry Melling
action filter_type
action union
action find
entity Terry Melling
relation country of citizenship
action find
entity Gorizia Airport
relation country
type designation for an administrative territorial entity
{'OR': [['Terry Melling', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Gorizia Airport', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Terry_Melling property:country_of_citizenship ?k } UNION { resource:Gorizia_Airport property:country ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q145
SYSTEM
Italy, United Kingdom
Q38 Q145
OR((Q18216987,P27,c(Q15617994)), (Q20462151,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q18216987
relation P27
action find
entity Q20462151
relation P17
type Q15617994
[ANSWERS] are the countries of citizenship of Terry Melling or are Gorizia Airport present in
{'OR': [['Q18216987', 'P27', {'concept': 'Q15617994'}], ['Q20462151', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q18216987 property:P27 ?k } UNION { resource:Q20462151 property:P17 ?k } } . ?k rdf:type ontology:Q15617994 }
Italy United Kingdom
Italy and United Kingdom are the countries of citizenship of Terry Melling or are Gorizia Airport present in
Italy United Kingdom
action filter_type
action union
action find
entity Terry Melling
relation country of citizenship
action find
entity Gorizia Airport
relation country
type designation for an administrative territorial entity
{'OR': [['Terry Melling', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Gorizia Airport', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Terry_Melling property:country_of_citizenship ?k } UNION { resource:Gorizia_Airport property:country ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16
P530
Q1048835
USER
Do Canada have tactful political relations with those administrative territories ?
(Q16,P530,Q38) (Q16,P530,Q145)
action is_in
entity prev_answer
action find
entity Q16
relation P530
['Q16', 'P530', 'Q38'] ['Q16', 'P530', 'Q145']
ASK WHERE { VALUES ( ?n ) { ( resource:Q38 ) ( resource:Q145 ) } . resource:Q16 property:P530 ?n }
Canada
action is_in
entity prev_answer
action find
entity Canada
relation diplomatic relation
['Canada', 'diplomatic relation', 'Italy'] ['Canada', 'diplomatic relation', 'United Kingdom']
ASK WHERE { VALUES ( ?n ) { ( resource:Italy ) ( resource:United_Kingdom ) } . resource:Canada property:diplomatic_relation ?n }
[]
political territorial entity
SYSTEM
YES
(Q16,P530,Q38) (Q16,P530,Q145)
action is_in
entity prev_answer
action find
entity Q16
relation P530
[ANSWER]
['Q16', 'P530', 'Q38'] ['Q16', 'P530', 'Q145']
ASK WHERE { VALUES ( ?n ) { ( resource:Q38 ) ( resource:Q145 ) } . resource:Q16 property:P530 ?n }
Yes
action is_in
entity prev_answer
action find
entity Canada
relation diplomatic relation
['Canada', 'diplomatic relation', 'Italy'] ['Canada', 'diplomatic relation', 'United Kingdom']
ASK WHERE { VALUES ( ?n ) { ( resource:Italy ) ( resource:United_Kingdom ) } . resource:Canada property:diplomatic_relation ?n }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q38 Q7178974
P921
Q732577
USER
How many publications have Italy or Petroleum naphtha as their principal topic ?
(c(Q732577),P921,Q38) (c(Q732577),P921,Q7178974)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P921
type Q732577
action filter_type
action find_reverse
entity Q7178974
relation P921
type Q732577
[{'concept': 'Q732577'}, 'P921', 'Q38'] [{'concept': 'Q732577'}, 'P921', 'Q7178974']
SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { ?z property:P921 ?b . VALUES ( ?b ) { ( resource:Q38 ) ( resource:Q7178974 ) } }
Italy Petroleum naphtha
action count
action union
action filter_type
action find_reverse
entity Italy
relation main subject
type publication
action filter_type
action find_reverse
entity Petroleum naphtha
relation main subject
type publication
[{'concept': 'publication'}, 'main subject', 'Italy'] [{'concept': 'publication'}, 'main subject', 'Petroleum naphtha']
SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { ?z property:main_subject ?b . VALUES ( ?b ) { ( resource:Italy ) ( resource:Petroleum_naphtha ) } }
[]
publication
SYSTEM
3
Q24237082 Q26353427 Q26354658
(c(Q732577),P921,Q38) (c(Q732577),P921,Q7178974)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P921
type Q732577
action filter_type
action find_reverse
entity Q7178974
relation P921
type Q732577
[ANSWER]
[{'concept': 'Q732577'}, 'P921', 'Q38'] [{'concept': 'Q732577'}, 'P921', 'Q7178974']
SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { ?z property:P921 ?b . VALUES ( ?b ) { ( resource:Q38 ) ( resource:Q7178974 ) } }
HHE Report No. HETA-85-538-1667, General Telephone Company, Sherman, Texas HHE Report No. HETA-89-222-2098, Cornell University, Ithaca, New York HHE Report No. HETA-81-057-905, Jefferson County Mental Health Center, Wheat Ridge, Colorado
3
action count
action union
action filter_type
action find_reverse
entity Italy
relation main subject
type publication
action filter_type
action find_reverse
entity Petroleum naphtha
relation main subject
type publication
[{'concept': 'publication'}, 'main subject', 'Italy'] [{'concept': 'publication'}, 'main subject', 'Petroleum naphtha']
SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { ?z property:main_subject ?b . VALUES ( ?b ) { ( resource:Italy ) ( resource:Petroleum_naphtha ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q368431 Q38
P47
Q1048835
USER
Which political territories have a shared border with Italy or Aldaia ?
OR((Q38,P47,c(Q1048835)), (Q368431,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q38
relation P47
action find
entity Q368431
relation P47
type Q1048835
{'OR': [['Q38', 'P47', {'concept': 'Q1048835'}], ['Q368431', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q38 property:P47 ?x } UNION { resource:Q368431 property:P47 ?x } } . ?x rdf:type ontology:Q1048835 }
Aldaia Italy
action filter_type
action union
action find
entity Italy
relation shares border with
action find
entity Aldaia
relation shares border with
type political territorial entity
{'OR': [['Italy', 'shares border with', {'concept': 'political territorial entity'}], ['Aldaia', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Italy property:shares_border_with ?x } UNION { resource:Aldaia property:shares_border_with ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q40 Q161945 Q13725 Q1649698 Q945911
SYSTEM
Austria, Torrent, Chirivella, Alaquàs, Quart de Poblet
Q40 Q161945 Q13725 Q1649698 Q945911
OR((Q38,P47,c(Q1048835)), (Q368431,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q38
relation P47
action find
entity Q368431
relation P47
type Q1048835
[ANSWERS] have a shared border with Italy or Aldaia
{'OR': [['Q38', 'P47', {'concept': 'Q1048835'}], ['Q368431', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q38 property:P47 ?x } UNION { resource:Q368431 property:P47 ?x } } . ?x rdf:type ontology:Q1048835 }
Austria Torrent Chirivella Alaquàs Quart de Poblet
Austria, Torrent, Chirivella, Alaquàs and Quart de Poblet have a shared border with Italy or Aldaia
Austria Torrent Chirivella Alaquàs Quart de Poblet
action filter_type
action union
action find
entity Italy
relation shares border with
action find
entity Aldaia
relation shares border with
type political territorial entity
{'OR': [['Italy', 'shares border with', {'concept': 'political territorial entity'}], ['Aldaia', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Italy property:shares_border_with ?x } UNION { resource:Aldaia property:shares_border_with ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]