Simple Question (Direct)
Simple Question
Q730538
P1196
Q1190554
USER
Which situation led to the death of Lassaad Ouertani ?
(Q730538,P1196,c(Q1190554))
action filter_type
action find
entity Q730538
relation P1196
type Q1190554
['Q730538', 'P1196', {'concept': 'Q1190554'}]
SELECT DISTINCT ?u WHERE { resource:Q730538 property:P1196 ?u . ?u rdf:type ontology:Q1190554 }
Lassaad Ouertani
action filter_type
action find
entity Lassaad Ouertani
relation manner of death
type event
['Lassaad Ouertani', 'manner of death', {'concept': 'event'}]
SELECT DISTINCT ?u WHERE { resource:Lassaad_Ouertani property:manner_of_death ?u . ?u rdf:type ontology:event }
[]
event
Q171558
SYSTEM
accident
Q171558
(Q730538,P1196,c(Q1190554))
action filter_type
action find
entity Q730538
relation P1196
type Q1190554
The [ANSWER] led to the death of Lassaad Ouertani
['Q730538', 'P1196', {'concept': 'Q1190554'}]
SELECT DISTINCT ?u WHERE { resource:Q730538 property:P1196 ?u . ?u rdf:type ontology:Q1190554 }
accident
The accident led to the death of Lassaad Ouertani
accident
action filter_type
action find
entity Lassaad Ouertani
relation manner of death
type event
['Lassaad Ouertani', 'manner of death', {'concept': 'event'}]
SELECT DISTINCT ?u WHERE { resource:Lassaad_Ouertani property:manner_of_death ?u . ?u rdf:type ontology:event }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q730538
P509
Q3839081
USER
What caused the death of Lassaad Ouertani ?
(Q730538,P509,c(Q3839081))
action filter_type
action find
entity Q730538
relation P509
type Q3839081
['Q730538', 'P509', {'concept': 'Q3839081'}]
SELECT DISTINCT ?e WHERE { resource:Q730538 property:P509 ?e . ?e rdf:type ontology:Q3839081 }
Lassaad Ouertani
action filter_type
action find
entity Lassaad Ouertani
relation cause of death
type disaster
['Lassaad Ouertani', 'cause of death', {'concept': 'disaster'}]
SELECT DISTINCT ?e WHERE { resource:Lassaad_Ouertani property:cause_of_death ?e . ?e rdf:type ontology:disaster }
[]
disaster
Q9687
SYSTEM
traffic accident
Q9687
(Q730538,P509,c(Q3839081))
action filter_type
action find
entity Q730538
relation P509
type Q3839081
De [ANSWER] caused the death of Lassaad Ouertani
['Q730538', 'P509', {'concept': 'Q3839081'}]
SELECT DISTINCT ?e WHERE { resource:Q730538 property:P509 ?e . ?e rdf:type ontology:Q3839081 }
traffic accident
De traffic accident caused the death of Lassaad Ouertani
traffic accident
action filter_type
action find
entity Lassaad Ouertani
relation cause of death
type disaster
['Lassaad Ouertani', 'cause of death', {'concept': 'disaster'}]
SELECT DISTINCT ?e WHERE { resource:Lassaad_Ouertani property:cause_of_death ?e . ?e rdf:type ontology:disaster }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q730538
P54
Q1194951
USER
Which national sports team is Lassaad Ouertani a member of ?
(Q730538,P54,c(Q1194951))
action filter_type
action find
entity Q730538
relation P54
type Q1194951
['Q730538', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1194951 . resource:Q730538 property:P54 ?b }
Lassaad Ouertani
action filter_type
action find
entity Lassaad Ouertani
relation member of sports team
type national sports team
['Lassaad Ouertani', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:national_sports_team . resource:Lassaad_Ouertani property:member_of_sports_team ?b }
[]
national sports team
Q27971
SYSTEM
Tunisia national football team
Q27971
(Q730538,P54,c(Q1194951))
action filter_type
action find
entity Q730538
relation P54
type Q1194951
And [ANSWER] is Lassaad Ouertani a member of
['Q730538', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1194951 . resource:Q730538 property:P54 ?b }
Tunisia national football team
And Tunisia national football team is Lassaad Ouertani a member of
Tunisia national football team
action filter_type
action find
entity Lassaad Ouertani
relation member of sports team
type national sports team
['Lassaad Ouertani', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:national_sports_team . resource:Lassaad_Ouertani property:member_of_sports_team ?b }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q27971
P1344
Q15275719
USER
Which recurring events did that national sports team take part in ?
(Q27971,P1344,c(Q15275719))
action filter_type
action find
entity Q27971
relation P1344
type Q15275719
['Q27971', 'P1344', {'concept': 'Q15275719'}]
SELECT DISTINCT ?w WHERE { resource:Q27971 property:P1344 ?w . ?w rdf:type ontology:Q15275719 }
Tunisia national football team
action filter_type
action find
entity Tunisia national football team
relation participant of
type recurring event
['Tunisia national football team', 'participant of', {'concept': 'recurring event'}]
SELECT DISTINCT ?w WHERE { resource:Tunisia_national_football_team property:participant_of ?w . ?w rdf:type ontology:recurring_event }
[]
recurring event
Q47735 Q37285 Q101730
SYSTEM
2002 FIFA World Cup, 2006 FIFA World Cup, 1998 FIFA World Cup
Q46943 Q47735 Q37285 Q101730
(Q27971,P1344,c(Q15275719))
action filter_type
action find
entity Q27971
relation P1344
type Q15275719
Part the [ANSWERS] that national sports team took in
['Q27971', 'P1344', {'concept': 'Q15275719'}]
SELECT DISTINCT ?w WHERE { resource:Q27971 property:P1344 ?w . ?w rdf:type ontology:Q15275719 }
1978 FIFA World Cup 2002 FIFA World Cup 2006 FIFA World Cup 1998 FIFA World Cup
Part the 2002 FIFA World Cup, 2006 FIFA World Cup and 1998 FIFA World Cup that national sports team took in
2002 FIFA World Cup 2006 FIFA World Cup 1998 FIFA World Cup
action filter_type
action find
entity Tunisia national football team
relation participant of
type recurring event
['Tunisia national football team', 'participant of', {'concept': 'recurring event'}]
SELECT DISTINCT ?w WHERE { resource:Tunisia_national_football_team property:participant_of ?w . ?w rdf:type ontology:recurring_event }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q178683
P1344
Q502895
USER
Did Cafu participate in those recurring events ?
(Q178683,P1344,Q47735) (Q178683,P1344,Q37285) (Q178683,P1344,Q101730)
action is_in
entity prev_answer
action find
entity Q178683
relation P1344
['Q178683', 'P1344', 'Q47735'] ['Q178683', 'P1344', 'Q37285'] ['Q178683', 'P1344', 'Q101730']
ASK WHERE { VALUES ( ?d ) { ( resource:Q46943 ) ( resource:Q47735 ) ( resource:Q37285 ) } . resource:Q178683 property:P1344 ?d }
Cafu
action is_in
entity prev_answer
action find
entity Cafu
relation participant of
['Cafu', 'participant of', '2002 FIFA World Cup'] ['Cafu', 'participant of', '2006 FIFA World Cup'] ['Cafu', 'participant of', '1998 FIFA World Cup']
ASK WHERE { VALUES ( ?d ) { ( resource:1978_FIFA_World_Cup ) ( resource:2002_FIFA_World_Cup ) ( resource:2006_FIFA_World_Cup ) } . resource:Cafu property:participant_of ?d }
[]
common name
SYSTEM
YES
(Q178683,P1344,Q47735) (Q178683,P1344,Q37285) (Q178683,P1344,Q101730)
action is_in
entity prev_answer
action find
entity Q178683
relation P1344
[ANSWER]
['Q178683', 'P1344', 'Q47735'] ['Q178683', 'P1344', 'Q37285'] ['Q178683', 'P1344', 'Q101730']
ASK WHERE { VALUES ( ?d ) { ( resource:Q46943 ) ( resource:Q47735 ) ( resource:Q37285 ) } . resource:Q178683 property:P1344 ?d }
Yes
action is_in
entity prev_answer
action find
entity Cafu
relation participant of
['Cafu', 'participant of', '2002 FIFA World Cup'] ['Cafu', 'participant of', '2006 FIFA World Cup'] ['Cafu', 'participant of', '1998 FIFA World Cup']
ASK WHERE { VALUES ( ?d ) { ( resource:1978_FIFA_World_Cup ) ( resource:2002_FIFA_World_Cup ) ( resource:2006_FIFA_World_Cup ) } . resource:Cafu property:participant_of ?d }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1923
Q1194951 Q13406554 Q15275719
USER
How many national sports teams took part in atmost 12 sport competitions or recurring events ?
(c(Q13406554)|c(Q15275719),P1923,c(Q1194951))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q13406554
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q15275719
value 12
[[{'concept': 'Q13406554'}, {'concept': 'Q15275719'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) ?f WHERE { ?o rdf:type ?c . VALUES ( ?c ) { ( ontology:Q13406554 ) ( ontology:Q15275719 ) } } GROUP BY ?f } . FILTER ( ?h <= 12 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation participating teams
type national sports team
type sport competition
action find_reverse_tuple_counts
relation participating teams
type national sports team
type recurring event
value 12
[[{'concept': 'sport competition'}, {'concept': 'recurring event'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) ?f WHERE { ?o rdf:type ?c . VALUES ( ?c ) { ( ontology:sport_competition ) ( ontology:recurring_event ) } } GROUP BY ?f } . FILTER ( ?h <= 12 ) }
[]
national sports team sport competition recurring event
SYSTEM
82
Q170327 Q130582 Q212166 Q207441 Q189322 Q34044 Q174512 Q21130178 Q193386 Q172014 Q223748 Q180187 Q188228 Q190978 Q21130160 Q212564 Q236014 Q180845 Q21130162 Q21130165 Q21130166 Q21130168 Q235910 Q987584 Q1131732 Q192828 Q270080 Q182740 Q180857 Q543842 Q726080 Q27971 Q170403 Q172025 Q172020 Q170566 Q268208 Q175315 Q214151 Q186262 Q194387 Q191406 Q172221 Q175145 Q134479 Q191595 Q47050 Q21130170 Q181903 Q189275 Q166196 Q175309 Q152424 Q207337 Q181190 Q163534 Q188363 Q186243 Q131785 Q184387 Q168397 Q235399 Q483856 Q189198 Q28089 Q163547 Q236006 Q721418 Q182072 Q184602 Q192149 Q164134 Q14132 Q2535606 Q21130157 Q21130156 Q483868 Q181930 Q208635 Q189723 Q206828 Q134925
(c(Q13406554)|c(Q15275719),P1923,c(Q1194951))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q13406554
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q15275719
value 12
[ANSWER]
[[{'concept': 'Q13406554'}, {'concept': 'Q15275719'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) ?f WHERE { ?o rdf:type ?c . VALUES ( ?c ) { ( ontology:Q13406554 ) ( ontology:Q15275719 ) } } GROUP BY ?f } . FILTER ( ?h <= 12 ) }
South Africa national football team China PR national football team Peru national football team Senegal national football team Latvia national football team Scotland national football team Slovakia national football team Transylvania national quidditch team Bolivia national football team Ghana national football team Panama national football team Honduras national football team El Salvador national football team Northern Ireland national football team England national quidditch team Colombia national football team Cuba national football team Bulgaria national football team Wales national quidditch team Scotland national quidditch team Luxembourg national quidditch team Uganda national quidditch team United Arab Emirates national football team Ecuador national football team Serbia and Montenegro national football team Angola national football team Congo DR national football team Serbia national football team Wales national football team South Korea national football team Russia national football team Tunisia national football team Ukraine national football team Chile national football team Paraguay national football team Japan national football team Australia national association football team New Zealand national football team Venezuela national football team Albania national football team Costa Rica national football team Israel national football team Slovenia national football team Ivory Coast national football team Croatia national football team Togo national football team Netherlands national football team Peru national quidditch team Algeria national football team Soviet Union national football team Poland national football team Cameroon national football team East Germany national football team Morocco national football team Bosnia and Herzegovina national football team Austria national football team Yugoslavia national football team Iraq national football team Denmark national football team Norway national football team Romania national football team Jamaica national football team Turkey national football team Iceland national football team Egypt national football team Republic of Ireland national football team Haiti national football team CIS national football team Czechoslovakia national football team Iran national football team Trinidad and Tobago national football team United States men's national soccer team North Korea national football team Dutch East Indies national football team Bulgaria national quidditch team Ireland national quidditch team Czech Republic national football team Nigeria national football team Canada national soccer team Saudi Arabia national football team Kuwait national football team Greece national football team
82
action count
action atmost
action union
action find_reverse_tuple_counts
relation participating teams
type national sports team
type sport competition
action find_reverse_tuple_counts
relation participating teams
type national sports team
type recurring event
value 12
[[{'concept': 'sport competition'}, {'concept': 'recurring event'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) ?f WHERE { ?o rdf:type ?c . VALUES ( ?c ) { ( ontology:sport_competition ) ( ontology:recurring_event ) } } GROUP BY ?f } . FILTER ( ?h <= 12 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1923
Q1194951 Q15275719 Q13406554
USER
Which national sports teams took part in min number of recurring events or sport competitions ?
(c(Q15275719)|c(Q13406554),P1923,c(Q1194951))
action argmin
action union
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q15275719
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q13406554
[[{'concept': 'Q15275719'}, {'concept': 'Q13406554'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?a ) { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?f ) WHERE { VALUES ( ?c ) { ( ontology:Q15275719 ) ( ontology:Q13406554 ) } . ?d rdf:type ?c } GROUP BY ?v } } . { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?p ) WHERE { { ?s rdf:type ontology:Q15275719 . ?e rdf:type ontology:Q1194951 . ?s property:P1923 ?e } UNION { ?s property:P1923 ?e . ?e rdf:type ontology:Q1194951 . ?s rdf:type ontology:Q13406554 } } GROUP BY ?e } . FILTER ( ?p = ?a ) }
action argmin
action union
action find_reverse_tuple_counts
relation participating teams
type national sports team
type recurring event
action find_reverse_tuple_counts
relation participating teams
type national sports team
type sport competition
[[{'concept': 'recurring event'}, {'concept': 'sport competition'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?a ) { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?f ) WHERE { VALUES ( ?c ) { ( ontology:recurring_event ) ( ontology:sport_competition ) } . ?d rdf:type ?c } GROUP BY ?v } } . { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?p ) WHERE { { ?s rdf:type ontology:recurring_event . ?e rdf:type ontology:national_sports_team . ?s property:participating_teams ?e } UNION { ?s property:participating_teams ?e . ?e rdf:type ontology:national_sports_team . ?s rdf:type ontology:sport_competition } } GROUP BY ?e } . FILTER ( ?p = ?a ) }
[]
national sports team recurring event sport competition
Q189322 Q21130157 Q21130178
SYSTEM
Latvia national football team, Bulgaria national quidditch team, Transylvania national quidditch team
Q189322 Q21130178 Q21130160 Q21130162 Q21130165 Q21130166 Q21130168 Q21130170 Q721418 Q21130157 Q21130156
(c(Q15275719)|c(Q13406554),P1923,c(Q1194951))
action argmin
action union
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q15275719
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q13406554
[ANSWERS] took part in min number of recurring events or sport competitions
[[{'concept': 'Q15275719'}, {'concept': 'Q13406554'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?a ) { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?f ) WHERE { VALUES ( ?c ) { ( ontology:Q15275719 ) ( ontology:Q13406554 ) } . ?d rdf:type ?c } GROUP BY ?v } } . { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?p ) WHERE { { ?s rdf:type ontology:Q15275719 . ?e rdf:type ontology:Q1194951 . ?s property:P1923 ?e } UNION { ?s property:P1923 ?e . ?e rdf:type ontology:Q1194951 . ?s rdf:type ontology:Q13406554 } } GROUP BY ?e } . FILTER ( ?p = ?a ) }
Latvia national football team Transylvania national quidditch team England national quidditch team Wales national quidditch team Scotland national quidditch team Luxembourg national quidditch team Uganda national quidditch team Peru national quidditch team CIS national football team Bulgaria national quidditch team Ireland national quidditch team
Latvia national football team, Bulgaria national quidditch team and Transylvania national quidditch team took part in min number of recurring events or sport competitions
Latvia national football team Bulgaria national quidditch team Transylvania national quidditch team
action argmin
action union
action find_reverse_tuple_counts
relation participating teams
type national sports team
type recurring event
action find_reverse_tuple_counts
relation participating teams
type national sports team
type sport competition
[[{'concept': 'recurring event'}, {'concept': 'sport competition'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?a ) { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?f ) WHERE { VALUES ( ?c ) { ( ontology:recurring_event ) ( ontology:sport_competition ) } . ?d rdf:type ?c } GROUP BY ?v } } . { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?p ) WHERE { { ?s rdf:type ontology:recurring_event . ?e rdf:type ontology:national_sports_team . ?s property:participating_teams ?e } UNION { ?s property:participating_teams ?e . ?e rdf:type ontology:national_sports_team . ?s rdf:type ontology:sport_competition } } GROUP BY ?e } . FILTER ( ?p = ?a ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4154670 Q730538
P27
Q15617994
USER
Which administrative territories are the native countriesof Lassaad Ouertani or Mikhail Danilov ?
OR((Q730538,P27,c(Q15617994)), (Q4154670,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q730538
relation P27
action find
entity Q4154670
relation P27
type Q15617994
{'OR': [['Q730538', 'P27', {'concept': 'Q15617994'}], ['Q4154670', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q730538 property:P27 ?k } UNION { resource:Q4154670 property:P27 ?k } } . ?k rdf:type ontology:Q15617994 }
Mikhail Danilov Lassaad Ouertani
action filter_type
action union
action find
entity Lassaad Ouertani
relation country of citizenship
action find
entity Mikhail Danilov
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Lassaad Ouertani', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mikhail Danilov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Lassaad_Ouertani property:country_of_citizenship ?k } UNION { resource:Mikhail_Danilov property:country_of_citizenship ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q948 Q159
SYSTEM
Tunisia, Russia
Q948 Q159
OR((Q730538,P27,c(Q15617994)), (Q4154670,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q730538
relation P27
action find
entity Q4154670
relation P27
type Q15617994
[ANSWERS] are the native countriesof Lassaad Ouertani or Mikhail Danilov
{'OR': [['Q730538', 'P27', {'concept': 'Q15617994'}], ['Q4154670', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q730538 property:P27 ?k } UNION { resource:Q4154670 property:P27 ?k } } . ?k rdf:type ontology:Q15617994 }
Tunisia Russia
Tunisia and Russia are the native countriesof Lassaad Ouertani or Mikhail Danilov
Tunisia Russia
action filter_type
action union
action find
entity Lassaad Ouertani
relation country of citizenship
action find
entity Mikhail Danilov
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Lassaad Ouertani', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mikhail Danilov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Lassaad_Ouertani property:country_of_citizenship ?k } UNION { resource:Mikhail_Danilov property:country_of_citizenship ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q183
P530
Q1048835
USER
Do Germany have diplomatic relations with those administrative territories ?
(Q183,P530,Q948) (Q183,P530,Q159)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q948'] ['Q183', 'P530', 'Q159']
ASK WHERE { VALUES ( ?c ) { ( resource:Q948 ) ( resource:Q159 ) } . resource:Q183 property:P530 ?c }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Tunisia'] ['Germany', 'diplomatic relation', 'Russia']
ASK WHERE { VALUES ( ?c ) { ( resource:Tunisia ) ( resource:Russia ) } . resource:Germany property:diplomatic_relation ?c }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q948) (Q183,P530,Q159)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q948'] ['Q183', 'P530', 'Q159']
ASK WHERE { VALUES ( ?c ) { ( resource:Q948 ) ( resource:Q159 ) } . resource:Q183 property:P530 ?c }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Tunisia'] ['Germany', 'diplomatic relation', 'Russia']
ASK WHERE { VALUES ( ?c ) { ( resource:Tunisia ) ( resource:Russia ) } . resource:Germany property:diplomatic_relation ?c }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q183
P530
Q1048835 Q15617994
USER
How many political territories holds diplomatic relationship with less number of administrative territories than Germany ?
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { resource:Q183 property:P530 ?j . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?b < ?f ) . { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?b ) WHERE { ?i rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 . ?i property:P530 ?q } GROUP BY ?i } }
Germany
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { resource:Germany property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?b < ?f ) . { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?b ) WHERE { ?i rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation ?q } GROUP BY ?i } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
12
Q1000 Q40 Q781 Q778 Q408 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { resource:Q183 property:P530 ?j . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?b < ?f ) . { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?b ) WHERE { ?i rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 . ?i property:P530 ?q } GROUP BY ?i } }
Gabon Austria Antigua and Barbuda The Bahamas Australia Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
12
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { resource:Germany property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?b < ?f ) . { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?b ) WHERE { ?i rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation ?q } GROUP BY ?i } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q766
P530
Q1048835 Q15617994
USER
And also tell me about Jamaica?
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?r ) WHERE { ?b property:P530 ?m . ?b rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { resource:Q766 property:P530 ?y . ?y rdf:type ontology:Q1048835 } } . FILTER ( ?r < ?x ) }
Jamaica
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?r ) WHERE { ?b property:diplomatic_relation ?m . ?b rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { resource:Jamaica property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity } } . FILTER ( ?r < ?x ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
6
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?r ) WHERE { ?b property:P530 ?m . ?b rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { resource:Q766 property:P530 ?y . ?y rdf:type ontology:Q1048835 } } . FILTER ( ?r < ?x ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
6
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?r ) WHERE { ?b property:diplomatic_relation ?m . ?b rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { resource:Jamaica property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity } } . FILTER ( ?r < ?x ) }
[]