Simple Question (Direct)
Simple Question
Q3369361
P106
Q151885
USER
What is the job of Patrick Corbin ?
(Q3369361,P106,c(Q151885))
action filter_type
action find
entity Q3369361
relation P106
type Q151885
['Q3369361', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?l WHERE { resource:Q3369361 property:P106 ?l . ?l rdf:type ontology:Q151885 }
Patrick Corbin
action filter_type
action find
entity Patrick Corbin
relation occupation
type concept
['Patrick Corbin', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?l WHERE { resource:Patrick_Corbin property:occupation ?l . ?l rdf:type ontology:concept }
[]
concept
Q10871364
SYSTEM
baseball player
Q10871364
(Q3369361,P106,c(Q151885))
action filter_type
action find
entity Q3369361
relation P106
type Q151885
The job of Patrick Corbin is a [ANSWER]
['Q3369361', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?l WHERE { resource:Q3369361 property:P106 ?l . ?l rdf:type ontology:Q151885 }
baseball player
The job of Patrick Corbin is a baseball player
baseball player
action filter_type
action find
entity Patrick Corbin
relation occupation
type concept
['Patrick Corbin', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?l WHERE { resource:Patrick_Corbin property:occupation ?l . ?l rdf:type ontology:concept }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3186517 Q10871364
P641
Q349
USER
Which sports were baseball player or José Pereira Germano a part of ?
OR((Q10871364,P641,c(Q349)), (Q3186517,P641,c(Q349)))
action filter_type
action union
action find
entity Q10871364
relation P641
action find
entity Q3186517
relation P641
type Q349
{'OR': [['Q10871364', 'P641', {'concept': 'Q349'}], ['Q3186517', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q10871364 property:P641 ?b } UNION { resource:Q3186517 property:P641 ?b } } . ?b rdf:type ontology:Q349 }
José Pereira Germano baseball player
action filter_type
action union
action find
entity baseball player
relation sport
action find
entity José Pereira Germano
relation sport
type sport
{'OR': [['baseball player', 'sport', {'concept': 'sport'}], ['José Pereira Germano', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?b WHERE { { { resource:baseball_player property:sport ?b } UNION { resource:José_Pereira_Germano property:sport ?b } } . ?b rdf:type ontology:sport }
[]
sport
Q5369 Q2736
SYSTEM
baseball, association football
Q5369 Q2736
OR((Q10871364,P641,c(Q349)), (Q3186517,P641,c(Q349)))
action filter_type
action union
action find
entity Q10871364
relation P641
action find
entity Q3186517
relation P641
type Q349
[ANSWERS] were baseball player or José Pereira Germano a part of
{'OR': [['Q10871364', 'P641', {'concept': 'Q349'}], ['Q3186517', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q10871364 property:P641 ?b } UNION { resource:Q3186517 property:P641 ?b } } . ?b rdf:type ontology:Q349 }
baseball association football
Baseball and association football were baseball player or José Pereira Germano a part of
baseball association football
action filter_type
action union
action find
entity baseball player
relation sport
action find
entity José Pereira Germano
relation sport
type sport
{'OR': [['baseball player', 'sport', {'concept': 'sport'}], ['José Pereira Germano', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?b WHERE { { { resource:baseball_player property:sport ?b } UNION { resource:José_Pereira_Germano property:sport ?b } } . ?b rdf:type ontology:sport }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2927984
P641
Q847017
USER
Are Gonzaga Bulldogs known to play those sports ?
(Q2927984,P641,Q5369) (Q2927984,P641,Q2736)
action is_in
entity prev_answer
action find
entity Q2927984
relation P641
['Q2927984', 'P641', 'Q5369'] ['Q2927984', 'P641', 'Q2736']
ASK WHERE { VALUES ( ?f ) { ( resource:Q5369 ) ( resource:Q2736 ) } . resource:Q2927984 property:P641 ?f }
Gonzaga Bulldogs
action is_in
entity prev_answer
action find
entity Gonzaga Bulldogs
relation sport
['Gonzaga Bulldogs', 'sport', 'baseball'] ['Gonzaga Bulldogs', 'sport', 'association football']
ASK WHERE { VALUES ( ?f ) { ( resource:baseball ) ( resource:association_football ) } . resource:Gonzaga_Bulldogs property:sport ?f }
[]
sports club
SYSTEM
YES
(Q2927984,P641,Q5369) (Q2927984,P641,Q2736)
action is_in
entity prev_answer
action find
entity Q2927984
relation P641
[ANSWER]
['Q2927984', 'P641', 'Q5369'] ['Q2927984', 'P641', 'Q2736']
ASK WHERE { VALUES ( ?f ) { ( resource:Q5369 ) ( resource:Q2736 ) } . resource:Q2927984 property:P641 ?f }
Yes
action is_in
entity prev_answer
action find
entity Gonzaga Bulldogs
relation sport
['Gonzaga Bulldogs', 'sport', 'baseball'] ['Gonzaga Bulldogs', 'sport', 'association football']
ASK WHERE { VALUES ( ?f ) { ( resource:baseball ) ( resource:association_football ) } . resource:Gonzaga_Bulldogs property:sport ?f }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q10871364 Q5369 Q5554023
P425
Q349
USER
Does baseball player have baseball and women's Australian rules football as thier field of occupation ?
(Q10871364,P425,Q5369) (Q10871364,P425,Q5554023)
action is_in
entity Q10871364
action intersection
action find_reverse
entity Q5369
relation P425
action find_reverse
entity Q5554023
relation P425
['Q10871364', 'P425', 'Q5369'] ['Q10871364', 'P425', 'Q5554023']
ASK WHERE { resource:Q10871364 property:P425 resource:Q5369 . resource:Q10871364 property:P425 resource:Q5554023 }
baseball player baseball women's Australian rules football
action is_in
entity baseball player
action intersection
action find_reverse
entity baseball
relation field of this occupation
action find_reverse
entity women's Australian rules football
relation field of this occupation
['baseball player', 'field of this occupation', 'baseball'] ['baseball player', 'field of this occupation', "women's Australian rules football"]
ASK WHERE { resource:baseball_player property:field_of_this_occupation resource:baseball . resource:baseball_player property:field_of_this_occupation resource:women's_Australian_rules_football }
[]
sport
SYSTEM
YES and NO respectively
(Q10871364,P425,Q5369) (Q10871364,P425,Q5554023)
action is_in
entity Q10871364
action intersection
action find_reverse
entity Q5369
relation P425
action find_reverse
entity Q5554023
relation P425
[ANSWER]
['Q10871364', 'P425', 'Q5369'] ['Q10871364', 'P425', 'Q5554023']
ASK WHERE { resource:Q10871364 property:P425 resource:Q5369 . resource:Q10871364 property:P425 resource:Q5554023 }
YES and NO respectively
action is_in
entity baseball player
action intersection
action find_reverse
entity baseball
relation field of this occupation
action find_reverse
entity women's Australian rules football
relation field of this occupation
['baseball player', 'field of this occupation', 'baseball'] ['baseball player', 'field of this occupation', "women's Australian rules football"]
ASK WHERE { resource:baseball_player property:field_of_this_occupation resource:baseball . resource:baseball_player property:field_of_this_occupation resource:women's_Australian_rules_football }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q5369 Q6845949
P417
Q502895
USER
Is Mike Barber the patron saint of baseball ?
(Q5369,P417,Q6845949)
action is_in
entity Q6845949
action find
entity Q5369
relation P417
['Q5369', 'P417', 'Q6845949']
ASK WHERE { resource:Q5369 property:P417 resource:Q6845949 }
baseball Mike Barber
action is_in
entity Mike Barber
action find
entity baseball
relation patron saint
['baseball', 'patron saint', 'Mike Barber']
ASK WHERE { resource:baseball property:patron_saint resource:Mike_Barber }
[]
common name
SYSTEM
NO
(Q5369,P417,Q6845949)
action is_in
entity Q6845949
action find
entity Q5369
relation P417
[ANSWER]
['Q5369', 'P417', 'Q6845949']
ASK WHERE { resource:Q5369 property:P417 resource:Q6845949 }
No
action is_in
entity Mike Barber
action find
entity baseball
relation patron saint
['baseball', 'patron saint', 'Mike Barber']
ASK WHERE { resource:baseball property:patron_saint resource:Mike_Barber }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q2012050
P706
Q1048835 Q151885
USER
Which political territories are the location where greater number of concepts are located than Donetsk Oblast ?
(c(Q151885),P706,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P706
type Q1048835
type Q151885
action count
action filter_type
action find
entity Q2012050
relation P706
type Q1048835
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?t ) WHERE { ?d property:P706 ?u . ?d rdf:type ontology:Q151885 . ?u rdf:type ontology:Q1048835 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Q2012050 property:P706 ?b . ?b rdf:type ontology:Q1048835 } } . FILTER ( ?t > ?i ) }
Donetsk Oblast
action greater
action find_reverse_tuple_counts
relation located on terrain feature
type political territorial entity
type concept
action count
action filter_type
action find
entity Donetsk Oblast
relation located on terrain feature
type political territorial entity
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?t ) WHERE { ?d property:located_on_terrain_feature ?u . ?d rdf:type ontology:concept . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Donetsk_Oblast property:located_on_terrain_feature ?b . ?b rdf:type ontology:political_territorial_entity } } . FILTER ( ?t > ?i ) }
[]
political territorial entity concept
Q183 Q35
SYSTEM
Germany, Denmark
Q183 Q35
(c(Q151885),P706,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P706
type Q1048835
type Q151885
action count
action filter_type
action find
entity Q2012050
relation P706
type Q1048835
[ANSWERS] are the location where greater number of concepts are located than Donetsk Oblast
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?t ) WHERE { ?d property:P706 ?u . ?d rdf:type ontology:Q151885 . ?u rdf:type ontology:Q1048835 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Q2012050 property:P706 ?b . ?b rdf:type ontology:Q1048835 } } . FILTER ( ?t > ?i ) }
Germany Denmark
Germany and Denmark are the location where greater number of concepts are located than Donetsk Oblast
Germany Denmark
action greater
action find_reverse_tuple_counts
relation located on terrain feature
type political territorial entity
type concept
action count
action filter_type
action find
entity Donetsk Oblast
relation located on terrain feature
type political territorial entity
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?t ) WHERE { ?d property:located_on_terrain_feature ?u . ?d rdf:type ontology:concept . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Donetsk_Oblast property:located_on_terrain_feature ?b . ?b rdf:type ontology:political_territorial_entity } } . FILTER ( ?t > ?i ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q785
P706
Q1048835 Q151885
USER
And what about Jersey?
(c(Q151885),P706,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P706
type Q1048835
type Q151885
action count
action filter_type
action find
entity Q785
relation P706
type Q1048835
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?o ) WHERE { ?e rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q151885 . ?k property:P706 ?e } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { resource:Q785 property:P706 ?j . ?j rdf:type ontology:Q1048835 } } . FILTER ( ?o > ?w ) }
Jersey
action greater
action find_reverse_tuple_counts
relation located on terrain feature
type political territorial entity
type concept
action count
action filter_type
action find
entity Jersey
relation located on terrain feature
type political territorial entity
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?o ) WHERE { ?e rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:concept . ?k property:located_on_terrain_feature ?e } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { resource:Jersey property:located_on_terrain_feature ?j . ?j rdf:type ontology:political_territorial_entity } } . FILTER ( ?o > ?w ) }
[]
political territorial entity concept
Q183 Q35
SYSTEM
Germany, Denmark
Q183 Q35
(c(Q151885),P706,c(Q1048835))
action greater
action find_reverse_tuple_counts
relation P706
type Q1048835
type Q151885
action count
action filter_type
action find
entity Q785
relation P706
type Q1048835
[ANSWERS]
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?o ) WHERE { ?e rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q151885 . ?k property:P706 ?e } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { resource:Q785 property:P706 ?j . ?j rdf:type ontology:Q1048835 } } . FILTER ( ?o > ?w ) }
Germany Denmark
Germany Denmark
action greater
action find_reverse_tuple_counts
relation located on terrain feature
type political territorial entity
type concept
action count
action filter_type
action find
entity Jersey
relation located on terrain feature
type political territorial entity
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?o ) WHERE { ?e rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:concept . ?k property:located_on_terrain_feature ?e } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { resource:Jersey property:located_on_terrain_feature ?j . ?j rdf:type ontology:political_territorial_entity } } . FILTER ( ?o > ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1032
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relationships with approximately the same number of political territories as Niger ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1032
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?j ) WHERE { ?h property:P530 ?u . ?h rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q1048835 } GROUP BY ?h } . FILTER ( ?j = ?r ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { resource:Q1032 property:P530 ?x . ?x rdf:type ontology:Q15617994 } } }
Niger
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Niger
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?j ) WHERE { ?h property:diplomatic_relation ?u . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?h } . FILTER ( ?j = ?r ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { resource:Niger property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity political territorial entity
Q230 Q184 Q32
SYSTEM
Georgia, Belarus, Luxembourg
Q702 Q262 Q265 Q37 Q712 Q717 Q837 Q657 Q792 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q184 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1032
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with approximately the same number of political territories as Niger
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?j ) WHERE { ?h property:P530 ?u . ?h rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q1048835 } GROUP BY ?h } . FILTER ( ?j = ?r ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { resource:Q1032 property:P530 ?x . ?x rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Chad El Salvador South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Belarus Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
Georgia, Belarus and Luxembourg have diplomatic relationships with approximately the same number of political territories as Niger
Georgia Belarus Luxembourg
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Niger
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?j ) WHERE { ?h property:diplomatic_relation ?u . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?h } . FILTER ( ?j = ?r ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { resource:Niger property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1008
P530
Q15617994 Q1048835
USER
And what about Côte d'Ivoire?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1008
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?n ) AS ?q ) WHERE { ?u property:P530 ?n . ?u rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q1048835 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { ?x rdf:type ontology:Q15617994 . resource:Q1008 property:P530 ?x } } . FILTER ( ?q = ?t ) }
Côte d'Ivoire
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Côte d'Ivoire
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?n ) AS ?q ) WHERE { ?u property:diplomatic_relation ?n . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:political_territorial_entity } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Côte_d'Ivoire property:diplomatic_relation ?x } } . FILTER ( ?q = ?t ) }
[]
designation for an administrative territorial entity political territorial entity
Q230 Q184 Q32
SYSTEM
Georgia, Belarus, Luxembourg
Q702 Q262 Q265 Q37 Q712 Q717 Q837 Q657 Q792 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q184 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1008
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?n ) AS ?q ) WHERE { ?u property:P530 ?n . ?u rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q1048835 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { ?x rdf:type ontology:Q15617994 . resource:Q1008 property:P530 ?x } } . FILTER ( ?q = ?t ) }
Federated States of Micronesia Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Chad El Salvador South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Belarus Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
Georgia Belarus Luxembourg
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Côte d'Ivoire
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?n ) AS ?q ) WHERE { ?u property:diplomatic_relation ?n . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:political_territorial_entity } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Côte_d'Ivoire property:diplomatic_relation ?x } } . FILTER ( ?q = ?t ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2736
P921
Q2342494 Q1209283
USER
How many collectables and electronic medias are association football a main subject of ?
(c(Q2342494),P921,Q2736) (c(Q1209283),P921,Q2736)
action count
action union
action filter_type
action find_reverse
entity Q2736
relation P921
type Q2342494
action filter_type
action find_reverse
entity Q2736
relation P921
type Q1209283
[{'concept': 'Q2342494'}, 'P921', 'Q2736'] [{'concept': 'Q1209283'}, 'P921', 'Q2736']
SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { { ?o rdf:type ontology:Q2342494 . ?o property:P921 resource:Q2736 } UNION { ?o property:P921 resource:Q2736 . ?o rdf:type ontology:Q1209283 } }
association football
action count
action union
action filter_type
action find_reverse
entity association football
relation main subject
type collectable
action filter_type
action find_reverse
entity association football
relation main subject
type electronic media
[{'concept': 'collectable'}, 'main subject', 'association football'] [{'concept': 'electronic media'}, 'main subject', 'association football']
SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { { ?o rdf:type ontology:collectable . ?o property:main_subject resource:association_football } UNION { ?o property:main_subject resource:association_football . ?o rdf:type ontology:electronic_media } }
[]
collectable electronic media
SYSTEM
8 collectables and 2 electronic medias
Q24548386 Q19971888 Q17689986 Q22675629 Q20824881 Q22667518 Q21570245 Q19428050 Q19845002 Q20856033
(c(Q2342494),P921,Q2736) (c(Q1209283),P921,Q2736)
action count
action union
action filter_type
action find_reverse
entity Q2736
relation P921
type Q2342494
action filter_type
action find_reverse
entity Q2736
relation P921
type Q1209283
[ANSWER]
[{'concept': 'Q2342494'}, 'P921', 'Q2736'] [{'concept': 'Q1209283'}, 'P921', 'Q2736']
SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { { ?o rdf:type ontology:Q2342494 . ?o property:P921 resource:Q2736 } UNION { ?o property:P921 resource:Q2736 . ?o rdf:type ontology:Q1209283 } }
100 år med allsvensk fotboll Football league players' records: 1888 to 1939 Le Foot: The Legends of French Football Crystal Palace: The Complete Record 1905-2011 Pompey: the history of Portsmouth Football Club Australian Player Database Who's who of Welsh international soccer players eu-football.info Citizens and minstermen : a who's who of York City FC, 1922-1997 The PFA Premier & Football League players' records, 1946-2005
8 collectables and 2 electronic medias
action count
action union
action filter_type
action find_reverse
entity association football
relation main subject
type collectable
action filter_type
action find_reverse
entity association football
relation main subject
type electronic media
[{'concept': 'collectable'}, 'main subject', 'association football'] [{'concept': 'electronic media'}, 'main subject', 'association football']
SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { { ?o rdf:type ontology:collectable . ?o property:main_subject resource:association_football } UNION { ?o property:main_subject resource:association_football . ?o rdf:type ontology:electronic_media } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q34020
P530
Q15617994 Q15617994
USER
How many administrative territories have ambassadorial relations with greater number of administrative territories than Niue ?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q34020
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { FILTER ( ?x > ?q ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { resource:Q34020 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } . { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?x ) WHERE { ?d rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 . ?d property:P530 ?j } GROUP BY ?d } }
Niue
action count
action greater
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 Niue
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 ( COUNT ( ?d ) AS ?c ) WHERE { FILTER ( ?x > ?q ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { resource:Niue property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?x ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d property:diplomatic_relation ?j } GROUP BY ?d } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
66
Q801 Q805 Q419 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q717 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q733 Q230 Q27 Q28 Q843 Q184 Q228 Q227 Q225 Q222 Q96 Q347 Q17 Q902 Q298 Q114 Q212 Q213 Q218 Q916 Q79 Q77 Q858 Q948 Q1016 Q1011 Q29 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q34020
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { FILTER ( ?x > ?q ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { resource:Q34020 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } . { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?x ) WHERE { ?d rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 . ?d property:P530 ?j } GROUP BY ?d } }
Israel Yemen Peru India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Venezuela Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Paraguay Georgia Ireland Hungary Pakistan Belarus Andorra Azerbaijan Bosnia and Herzegovina Albania Mexico Liechtenstein Japan Bangladesh Chile Kenya Ukraine Czech Republic Romania Angola Egypt Uruguay Syria Tunisia Libya Cape Verde Spain Zambia
66
action count
action greater
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 Niue
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 ( COUNT ( ?d ) AS ?c ) WHERE { FILTER ( ?x > ?q ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { resource:Niue property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?x ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d property:diplomatic_relation ?j } GROUP BY ?d } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q463644 Q6845949
P106
Q12737077
USER
Which occupations are the professions of Mike Barber and Bob Sapp ?
AND((Q6845949,P106,c(Q12737077)), (Q463644,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q6845949
relation P106
action find
entity Q463644
relation P106
type Q12737077
{'AND': [['Q6845949', 'P106', {'concept': 'Q12737077'}], ['Q463644', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q6845949 property:P106 ?y . resource:Q463644 property:P106 ?y }
Bob Sapp Mike Barber
action filter_type
action intersection
action find
entity Mike Barber
relation occupation
action find
entity Bob Sapp
relation occupation
type occupation
{'AND': [['Mike Barber', 'occupation', {'concept': 'occupation'}], ['Bob Sapp', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Mike_Barber property:occupation ?y . resource:Bob_Sapp property:occupation ?y }
[]
occupation
Q19204627
SYSTEM
American football player
Q19204627
AND((Q6845949,P106,c(Q12737077)), (Q463644,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q6845949
relation P106
action find
entity Q463644
relation P106
type Q12737077
The professions of Mike Barber and Bob Sapp are an [ANSWER]
{'AND': [['Q6845949', 'P106', {'concept': 'Q12737077'}], ['Q463644', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q6845949 property:P106 ?y . resource:Q463644 property:P106 ?y }
American football player
The professions of Mike Barber and Bob Sapp are an American football player
American football player
action filter_type
action intersection
action find
entity Mike Barber
relation occupation
action find
entity Bob Sapp
relation occupation
type occupation
{'AND': [['Mike Barber', 'occupation', {'concept': 'occupation'}], ['Bob Sapp', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Mike_Barber property:occupation ?y . resource:Bob_Sapp property:occupation ?y }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q155 Q35
P27
Q502895
USER
Which people are a citizen of Denmark and Brazil ?
AND((c(Q502895),P27,Q35), (c(Q502895),P27,Q155))
action filter_type
action intersection
action find_reverse
entity Q35
relation P27
action find_reverse
entity Q155
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q35'], [{'concept': 'Q502895'}, 'P27', 'Q155']]}
SELECT DISTINCT ?i WHERE { ?i property:P27 resource:Q35 . ?i property:P27 resource:Q155 . ?i rdf:type ontology:Q502895 }
Brazil Denmark
action filter_type
action intersection
action find_reverse
entity Denmark
relation country of citizenship
action find_reverse
entity Brazil
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Denmark'], [{'concept': 'common name'}, 'country of citizenship', 'Brazil']]}
SELECT DISTINCT ?i WHERE { ?i property:country_of_citizenship resource:Denmark . ?i property:country_of_citizenship resource:Brazil . ?i rdf:type ontology:common_name }
[]
common name
Q707385
SYSTEM
Jens Martin Knudsen
Q707385
AND((c(Q502895),P27,Q35), (c(Q502895),P27,Q155))
action filter_type
action intersection
action find_reverse
entity Q35
relation P27
action find_reverse
entity Q155
relation P27
type Q502895
[ANSWER] is a citizen of Denmark and Brazil
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q35'], [{'concept': 'Q502895'}, 'P27', 'Q155']]}
SELECT DISTINCT ?i WHERE { ?i property:P27 resource:Q35 . ?i property:P27 resource:Q155 . ?i rdf:type ontology:Q502895 }
Jens Martin Knudsen
Jens Martin Knudsen is a citizen of Denmark and Brazil
Jens Martin Knudsen
action filter_type
action intersection
action find_reverse
entity Denmark
relation country of citizenship
action find_reverse
entity Brazil
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Denmark'], [{'concept': 'common name'}, 'country of citizenship', 'Brazil']]}
SELECT DISTINCT ?i WHERE { ?i property:country_of_citizenship resource:Denmark . ?i property:country_of_citizenship resource:Brazil . ?i rdf:type ontology:common_name }
[]