Simple Question (Direct)
Simple Question
Q400729
P39
Q12737077
USER
What was the position for which Ahmad Sa'd was appointed ?
(Q400729,P39,c(Q12737077))
action filter_type
action find
entity Q400729
relation P39
type Q12737077
['Q400729', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q400729 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Ahmad Sa'd
action filter_type
action find
entity Ahmad Sa'd
relation position held
type occupation
["Ahmad Sa'd", 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Ahmad_Sa'd property:position_held ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q4047513
SYSTEM
Knesset member
Q4047513
(Q400729,P39,c(Q12737077))
action filter_type
action find
entity Q400729
relation P39
type Q12737077
[ANSWER]
['Q400729', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q400729 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Knesset member
Knesset member
Knesset member
action filter_type
action find
entity Ahmad Sa'd
relation position held
type occupation
["Ahmad Sa'd", 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Ahmad_Sa'd property:position_held ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q400729
P20
Q15617994
USER
Which administrative territory is the place of death of that person ?
(Q4047513,P20,c(Q15617994))
action filter_type
action find
entity Q400729
relation P20
type Q15617994
['Q4047513', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q400729 property:P20 ?v }
Ahmad Sa'd
action filter_type
action find
entity Ahmad Sa'd
relation place of death
type designation for an administrative territorial entity
['Knesset member', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ahmad_Sa'd property:place_of_death ?v }
[]
designation for an administrative territorial entity
Q801
SYSTEM
Israel
Q801
(Q4047513,P20,c(Q15617994))
action filter_type
action find
entity Q400729
relation P20
type Q15617994
To [ANSWER] is the place of death of that person
['Q4047513', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q400729 property:P20 ?v }
Israel
To Israel is the place of death of that person
Israel
action filter_type
action find
entity Ahmad Sa'd
relation place of death
type designation for an administrative territorial entity
['Knesset member', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ahmad_Sa'd property:place_of_death ?v }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q801 Q48
P30
Q2221906
USER
Is Asia that administrative territory located ?
(Q801,P30,Q48)
action is_in
entity Q48
action find
entity Q801
relation P30
['Q801', 'P30', 'Q48']
ASK WHERE { resource:Q801 property:P30 resource:Q48 }
Israel Asia
action is_in
entity Asia
action find
entity Israel
relation continent
['Israel', 'continent', 'Asia']
ASK WHERE { resource:Israel property:continent resource:Asia }
[]
geographic location
SYSTEM
YES
(Q801,P30,Q48)
action is_in
entity Q48
action find
entity Q801
relation P30
[ANSWER]
['Q801', 'P30', 'Q48']
ASK WHERE { resource:Q801 property:P30 resource:Q48 }
Yes
action is_in
entity Asia
action find
entity Israel
relation continent
['Israel', 'continent', 'Asia']
ASK WHERE { resource:Israel property:continent resource:Asia }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic associations with max number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?y ) { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?b ) WHERE { ?j property:P530 ?o . ?j rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } GROUP BY ?j } } . { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?m ) WHERE { ?x property:P530 ?h . ?x rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?m = ?y ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?y ) { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?b ) WHERE { ?j property:diplomatic_relation ?o . ?j rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } } . { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?m ) WHERE { ?x property:diplomatic_relation ?h . ?x rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?m = ?y ) }
[]
designation for an administrative territorial entity political territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have diplomatic associations with max number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?y ) { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?b ) WHERE { ?j property:P530 ?o . ?j rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } GROUP BY ?j } } . { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?m ) WHERE { ?x property:P530 ?h . ?x rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?m = ?y ) }
Germany
Germany have diplomatic associations with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?y ) { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?b ) WHERE { ?j property:diplomatic_relation ?o . ?j rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } } . { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?m ) WHERE { ?x property:diplomatic_relation ?h . ?x rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?m = ?y ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P1427
Q1048835 Q22348500 Q2912397
USER
How many political territories are the starting points of approximately the same number of cycling race classes and single-day races as that political territory ?
(c(Q22348500)|c(Q2912397),P1427,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1427
type Q1048835
type Q22348500
action find_reverse_tuple_counts
relation P1427
type Q1048835
type Q2912397
action count
action filter_multi_types
action find_reverse
entity Q183
relation P1427
type Q22348500
type Q2912397
[[{'concept': 'Q22348500'}, {'concept': 'Q2912397'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?t ) WHERE { { ?c property:P1427 ?w . ?w rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q2912397 } UNION { ?c property:P1427 ?w . ?w rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q22348500 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:P1427 resource:Q183 . { { ?d rdf:type ontology:Q2912397 } UNION { ?d rdf:type ontology:Q22348500 } } } } . FILTER ( ?t = ?n ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation start point
type political territorial entity
type cycling race class defined by the International Cycling Union
action find_reverse_tuple_counts
relation start point
type political territorial entity
type single-day race
action count
action filter_multi_types
action find_reverse
entity Germany
relation start point
type cycling race class defined by the International Cycling Union
type single-day race
[[{'concept': 'cycling race class defined by the International Cycling Union'}, {'concept': 'single-day race'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?t ) WHERE { { ?c property:start_point ?w . ?w rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:single-day_race } UNION { ?c property:start_point ?w . ?w rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:start_point resource:Germany . { { ?d rdf:type ontology:single-day_race } UNION { ?d rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union } } } } . FILTER ( ?t = ?n ) }
[]
political territorial entity cycling race class defined by the International Cycling Union single-day race
SYSTEM
63
Q572800 Q15907 Q1443867 Q55480 Q937763 Q593620 Q615841 Q183 Q1552975 Q496424 Q301437 Q2264671 Q1628379 Q49661 Q1607762 Q536682 Q641221 Q1647365 Q671341 Q1765676 Q848172 Q1442183 Q847329 Q1605692 Q11492 Q642046 Q430454 Q956524 Q1646362 Q1641632 Q488555 Q371748 Q1375842 Q739495 Q1649616 Q634078 Q1186888 Q15486 Q1629539 Q851020 Q846153 Q1621191 Q490638 Q913277 Q77433 Q15640 Q492748 Q1374736 Q1617896 Q12686 Q484552 Q818341 Q564773 Q221749 Q639412 Q12647 Q825883 Q976528 Q1771143 Q693913 Q1605993 Q604810 Q592747
(c(Q22348500)|c(Q2912397),P1427,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1427
type Q1048835
type Q22348500
action find_reverse_tuple_counts
relation P1427
type Q1048835
type Q2912397
action count
action filter_multi_types
action find_reverse
entity Q183
relation P1427
type Q22348500
type Q2912397
[ANSWER]
[[{'concept': 'Q22348500'}, {'concept': 'Q2912397'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?t ) WHERE { { ?c property:P1427 ?w . ?w rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q2912397 } UNION { ?c property:P1427 ?w . ?w rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q22348500 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:P1427 resource:Q183 . { { ?d rdf:type ontology:Q2912397 } UNION { ?d rdf:type ontology:Q22348500 } } } } . FILTER ( ?t = ?n ) }
Alcañiz Rota Los Corrales de Buelna Colmenar Viejo Graus Monachil Puebla de Don Fadrique Germany Sabiñánigo Calatayud Priego de Córdoba El Palomar Mairena del Alcor Mauren Cenlle Belorado Viveiro Urdazubi/Urdax Betanzos Torredelcampo Caleruega Sober Comillas Palomares del Río Mataró Calahorra Roa, Burgos Maella Villalpando Jódar Baeza San Lorenzo de El Escorial Ortigueira Vilanova de Arousa Orio Marín, Pontevedra Denbigh Bagà Salvaterra de Miño Xàbia San Roque A Estrada Almendralejo Mazarrón Leganés Sant Joan Despí Estepona Lalín Maceda Rialp Algeciras Monforte de Lemos Alhendín Torrevieja Tarazona Vielha e Mijaran Valls Alhaurín de la Torre Carboneras de Guadazaón Medina del Campo Cistierna Markina-Xemein Las Rozas de Madrid
63
action count
action approx
action union
action find_reverse_tuple_counts
relation start point
type political territorial entity
type cycling race class defined by the International Cycling Union
action find_reverse_tuple_counts
relation start point
type political territorial entity
type single-day race
action count
action filter_multi_types
action find_reverse
entity Germany
relation start point
type cycling race class defined by the International Cycling Union
type single-day race
[[{'concept': 'cycling race class defined by the International Cycling Union'}, {'concept': 'single-day race'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?t ) WHERE { { ?c property:start_point ?w . ?w rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:single-day_race } UNION { ?c property:start_point ?w . ?w rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:start_point resource:Germany . { { ?d rdf:type ontology:single-day_race } UNION { ?d rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union } } } } . FILTER ( ?t = ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q739
P530
Q15617994 Q1048835
USER
How many administrative territories holds diplomatic relationship with around the same number of political territories as Colombia ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q739
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?j ) WHERE { ?q property:P530 ?u . ?q rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q1048835 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { resource:Q739 property:P530 ?w . ?w rdf:type ontology:Q15617994 } } . FILTER ( ?j = ?k ) }
Colombia
action count
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 Colombia
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 ( COUNT ( ?q ) AS ?e ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?j ) WHERE { ?q property:diplomatic_relation ?u . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { resource:Colombia property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?j = ?k ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
32
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q884 Q33 Q30 Q36 Q34 Q39 Q739 Q423 Q851 Q20 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q739
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?j ) WHERE { ?q property:P530 ?u . ?q rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q1048835 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { resource:Q739 property:P530 ?w . ?w rdf:type ontology:Q15617994 } } . FILTER ( ?j = ?k ) }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey South Korea Finland United States of America Poland Sweden Switzerland Colombia North Korea Saudi Arabia Norway Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
32
action count
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 Colombia
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 ( COUNT ( ?q ) AS ?e ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?j ) WHERE { ?q property:diplomatic_relation ?u . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { resource:Colombia property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?j = ?k ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1007
P530
Q15617994 Q1048835
USER
How many administrative territories have a diplomatic relationship with greater number of political territories than Guinea-Bissau ?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1007
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?g ) AS ?b ) WHERE { ?k property:P530 ?g . ?k rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1048835 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { ?f rdf:type ontology:Q15617994 . resource:Q1007 property:P530 ?f } } . FILTER ( ?b > ?e ) }
Guinea-Bissau
action count
action greater
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 Guinea-Bissau
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 ( COUNT ( ?k ) AS ?t ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?g ) AS ?b ) WHERE { ?k property:diplomatic_relation ?g . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Guinea-Bissau property:diplomatic_relation ?f } } . FILTER ( ?b > ?e ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
82
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q233 Q20 Q1041 Q27 Q843 Q1029 Q1028 Q736 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1007
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?g ) AS ?b ) WHERE { ?k property:P530 ?g . ?k rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1048835 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { ?f rdf:type ontology:Q15617994 . resource:Q1007 property:P530 ?f } } . FILTER ( ?b > ?e ) }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Malta Norway Senegal Ireland Pakistan Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
82
action count
action greater
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 Guinea-Bissau
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 ( COUNT ( ?k ) AS ?t ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?g ) AS ?b ) WHERE { ?k property:diplomatic_relation ?g . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Guinea-Bissau property:diplomatic_relation ?f } } . FILTER ( ?b > ?e ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q400729 Q3848792
P27
Q15617994
USER
How many administrative territories do Ahmad Sa'd or Olaf Kullmann belong to ?
(Q400729,P27,c(Q15617994)) (Q3848792,P27,c(Q15617994))
action count
action union
action filter_type
action find
entity Q400729
relation P27
type Q15617994
action filter_type
action find
entity Q3848792
relation P27
type Q15617994
['Q400729', 'P27', {'concept': 'Q15617994'}] ['Q3848792', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { resource:Q400729 property:P27 ?j . ?j rdf:type ontology:Q15617994 } UNION { resource:Q3848792 property:P27 ?j . ?j rdf:type ontology:Q15617994 } }
Ahmad Sa'd Olaf Kullmann
action count
action union
action filter_type
action find
entity Ahmad Sa'd
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Olaf Kullmann
relation country of citizenship
type designation for an administrative territorial entity
["Ahmad Sa'd", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Olaf Kullmann', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { resource:Ahmad_Sa'd property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Olaf_Kullmann property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
SYSTEM
2
Q20 Q801
(Q400729,P27,c(Q15617994)) (Q3848792,P27,c(Q15617994))
action count
action union
action filter_type
action find
entity Q400729
relation P27
type Q15617994
action filter_type
action find
entity Q3848792
relation P27
type Q15617994
[ANSWER]
['Q400729', 'P27', {'concept': 'Q15617994'}] ['Q3848792', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { resource:Q400729 property:P27 ?j . ?j rdf:type ontology:Q15617994 } UNION { resource:Q3848792 property:P27 ?j . ?j rdf:type ontology:Q15617994 } }
Norway Israel
2
action count
action union
action filter_type
action find
entity Ahmad Sa'd
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Olaf Kullmann
relation country of citizenship
type designation for an administrative territorial entity
["Ahmad Sa'd", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Olaf Kullmann', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { resource:Ahmad_Sa'd property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Olaf_Kullmann property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q801
P1313
Q12737077
USER
What is the occupation held by Israel ?
(Q801,P1313,c(Q12737077))
action filter_type
action find
entity Q801
relation P1313
type Q12737077
['Q801', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12737077 . resource:Q801 property:P1313 ?p }
Israel
action filter_type
action find
entity Israel
relation office held by head of government
type occupation
['Israel', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:occupation . resource:Israel property:office_held_by_head_of_government ?p }
[]
occupation
Q208487
SYSTEM
Prime Minister of Israel
Q208487
(Q801,P1313,c(Q12737077))
action filter_type
action find
entity Q801
relation P1313
type Q12737077
The occupation held by Israel is the [ANSWER]
['Q801', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12737077 . resource:Q801 property:P1313 ?p }
Prime Minister of Israel
The occupation held by Israel is the Prime Minister of Israel
Prime Minister of Israel
action filter_type
action find
entity Israel
relation office held by head of government
type occupation
['Israel', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:occupation . resource:Israel property:office_held_by_head_of_government ?p }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
Which people are the names of the patron saint of around 1 occupation ?
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 1
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?d ) AS ?e ) WHERE { ?z rdf:type ontology:Q502895 . ?d rdf:type ontology:Q12737077 . ?d property:P417 ?z } GROUP BY ?z } . FILTER ( ?e = 1 ) }
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 1
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?d ) AS ?e ) WHERE { ?z rdf:type ontology:common_name . ?d rdf:type ontology:occupation . ?d property:patron_saint ?z } GROUP BY ?z } . FILTER ( ?e = 1 ) }
[]
common name occupation
Q9438 Q60059 Q44281
SYSTEM
Thomas Aquinas, Albertus Magnus, Ignatius of Loyola
Q453698 Q152457 Q43689 Q163900 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q508214 Q9200 Q193507 Q463600 Q43669 Q40662 Q332656 Q320171 Q137947 Q80513 Q324700 Q44015 Q149727 Q232427 Q60059 Q17590 Q271474 Q276148
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 1
[ANSWERS] are the names of the patron saint of around 1 occupation
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?d ) AS ?e ) WHERE { ?z rdf:type ontology:Q502895 . ?d rdf:type ontology:Q12737077 . ?d property:P417 ?z } GROUP BY ?z } . FILTER ( ?e = 1 ) }
Saint Amand Saint Roch Ambrose Saint Francis Xavier Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Urban of Langres John the Apostle Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Charalampus
Thomas Aquinas, Albertus Magnus and Ignatius of Loyola are the names of the patron saint of around 1 occupation
Thomas Aquinas Albertus Magnus Ignatius of Loyola
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 1
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?d ) AS ?e ) WHERE { ?z rdf:type ontology:common_name . ?d rdf:type ontology:occupation . ?d property:patron_saint ?z } GROUP BY ?z } . FILTER ( ?e = 1 ) }
[]