Simple Question (Direct)
Simple Question
Q3154916
P21
Q290
USER
Which sex does Isabelle Désert possess ?
(Q3154916,P21,c(Q290))
action filter_type
action find
entity Q3154916
relation P21
type Q290
['Q3154916', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q3154916 property:P21 ?q . ?q rdf:type ontology:Q290 }
Isabelle Désert
action filter_type
action find
entity Isabelle Désert
relation gender
type sex
['Isabelle Désert', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Isabelle_Désert property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q3154916,P21,c(Q290))
action filter_type
action find
entity Q3154916
relation P21
type Q290
Isabelle Désert possesses a [ANSWER]
['Q3154916', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q3154916 property:P21 ?q . ?q rdf:type ontology:Q290 }
female
Isabelle Désert possesses a female
female
action filter_type
action find
entity Isabelle Désert
relation gender
type sex
['Isabelle Désert', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Isabelle_Désert property:gender ?q . ?q rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3154916
P641
Q349
USER
What did that person participate in ?
(Q6581072,P641,c(Q349))
action filter_type
action find
entity Q3154916
relation P641
type Q349
['Q6581072', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q3154916 property:P641 ?h . ?h rdf:type ontology:Q349 }
Isabelle Désert
action filter_type
action find
entity Isabelle Désert
relation sport
type sport
['female', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:Isabelle_Désert property:sport ?h . ?h rdf:type ontology:sport }
[]
sport
Q5372
SYSTEM
basketball
Q5372
(Q6581072,P641,c(Q349))
action filter_type
action find
entity Q3154916
relation P641
type Q349
That person participated in [ANSWER]
['Q6581072', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q3154916 property:P641 ?h . ?h rdf:type ontology:Q349 }
basketball
That person participated in basketball
basketball
action filter_type
action find
entity Isabelle Désert
relation sport
type sport
['female', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:Isabelle_Désert property:sport ?h . ?h rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5372
P106
Q502895
USER
Which people have career as that sport ?
(c(Q502895),P106,Q5372)
action filter_type
action find_reverse
entity Q5372
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q5372']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P106 resource:Q5372 }
basketball
action filter_type
action find_reverse
entity basketball
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'basketball']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:occupation resource:basketball }
[]
common name
Q1346122 Q9013588
SYSTEM
José Bautista, José Antonio Gasca
Q1346122 Q9013588
(c(Q502895),P106,Q5372)
action filter_type
action find_reverse
entity Q5372
relation P106
type Q502895
[ANSWERS] have career as that sport
[{'concept': 'Q502895'}, 'P106', 'Q5372']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P106 resource:Q5372 }
José Bautista José Antonio Gasca
José Bautista and José Antonio Gasca have career as that sport
José Bautista José Antonio Gasca
action filter_type
action find_reverse
entity basketball
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'basketball']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:occupation resource:basketball }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1346122 Q9013588
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of those people ?
(Q1346122,P27,c(Q15617994)) (Q9013588,P27,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P27
type Q15617994
['Q1346122', 'P27', {'concept': 'Q15617994'}] ['Q9013588', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . ?i property:P27 ?n . VALUES ( ?i ) { ( resource:Q1346122 ) ( resource:Q9013588 ) } }
José Bautista José Antonio Gasca
action filter_type
action find
entity prev_answer
relation country of citizenship
type designation for an administrative territorial entity
['José Bautista', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['José Antonio Gasca', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:country_of_citizenship ?n . VALUES ( ?i ) { ( resource:José_Bautista ) ( resource:José_Antonio_Gasca ) } }
[]
designation for an administrative territorial entity
Q786 Q29
SYSTEM
Dominican Republic, Spain
Q786 Q29
(Q1346122,P27,c(Q15617994)) (Q9013588,P27,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of those people
['Q1346122', 'P27', {'concept': 'Q15617994'}] ['Q9013588', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . ?i property:P27 ?n . VALUES ( ?i ) { ( resource:Q1346122 ) ( resource:Q9013588 ) } }
Dominican Republic Spain
Dominican Republic and Spain are the countries of citizenship of those people
Dominican Republic Spain
action filter_type
action find
entity prev_answer
relation country of citizenship
type designation for an administrative territorial entity
['José Bautista', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['José Antonio Gasca', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:country_of_citizenship ?n . VALUES ( ?i ) { ( resource:José_Bautista ) ( resource:José_Antonio_Gasca ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q786 Q29
P1001
Q12737077
USER
Which occupations have jurisdiction over Dominican Republic and Spain ?
(c(Q12737077),P1001,Q786) (c(Q12737077),P1001,Q29)
action union
action filter_type
action find_reverse
entity Q786
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q29
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q786'] [{'concept': 'Q12737077'}, 'P1001', 'Q29']
SELECT DISTINCT ?l WHERE { { ?l property:P1001 resource:Q786 . ?l rdf:type ontology:Q12737077 } UNION { ?l rdf:type ontology:Q12737077 . ?l property:P1001 resource:Q29 } }
Dominican Republic Spain
action union
action filter_type
action find_reverse
entity Dominican Republic
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity Spain
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Dominican Republic'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Spain']
SELECT DISTINCT ?l WHERE { { ?l property:applies_to_jurisdiction resource:Dominican_Republic . ?l rdf:type ontology:occupation } UNION { ?l rdf:type ontology:occupation . ?l property:applies_to_jurisdiction resource:Spain } }
[]
occupation
Q3847454 Q18171345 Q844587
SYSTEM
King of Spain, Member of the Congress of Deputies of Spain, Prime Minister of Spain
Q21295132 Q21328590 Q18171345 Q23636106 Q844587 Q19323171 Q3113035 Q24279063 Q7443629 Q3847454 Q6508563
(c(Q12737077),P1001,Q786) (c(Q12737077),P1001,Q29)
action union
action filter_type
action find_reverse
entity Q786
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q29
relation P1001
type Q12737077
[ANSWERS] have jurisdiction over Dominican Republic and Spain
[{'concept': 'Q12737077'}, 'P1001', 'Q786'] [{'concept': 'Q12737077'}, 'P1001', 'Q29']
SELECT DISTINCT ?l WHERE { { ?l property:P1001 resource:Q786 . ?l rdf:type ontology:Q12737077 } UNION { ?l rdf:type ontology:Q12737077 . ?l property:P1001 resource:Q29 } }
member of the Senate of the Dominican Republic Member of the Chamber of Deputies of the Dominican Republic Member of the Congress of Deputies of Spain Minister of Territorial Policy Prime Minister of Spain Member of the Senate of Spain Deputy Prime Minister of Spain Minister of Justice Second Deputy Prime Minister King of Spain Leader of the Opposition
King of Spain, Member of the Congress of Deputies of Spain and Prime Minister of Spain have jurisdiction over Dominican Republic and Spain
King of Spain Member of the Congress of Deputies of Spain Prime Minister of Spain
action union
action filter_type
action find_reverse
entity Dominican Republic
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity Spain
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Dominican Republic'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Spain']
SELECT DISTINCT ?l WHERE { { ?l property:applies_to_jurisdiction resource:Dominican_Republic . ?l rdf:type ontology:occupation } UNION { ?l rdf:type ontology:occupation . ?l property:applies_to_jurisdiction resource:Spain } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q3847454 Q18171345 Q844587
P17
Q15617994
USER
Which administrative territories are King of Spain, Member of the Congress of Deputies of Spain and Prime Minister of Spain situated in ?
(Q3847454,P17,c(Q15617994)) (Q18171345,P17,c(Q15617994)) (Q844587,P17,c(Q15617994))
action union
action filter_type
action find
entity Q3847454
relation P17
type Q15617994
action filter_type
action find
entity Q18171345
relation P17
type Q15617994
action filter_type
action find
entity Q844587
relation P17
type Q15617994
['Q3847454', 'P17', {'concept': 'Q15617994'}] ['Q18171345', 'P17', {'concept': 'Q15617994'}] ['Q844587', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { resource:Q3847454 property:P17 ?s . ?s rdf:type ontology:Q15617994 } UNION { ?s rdf:type ontology:Q15617994 . resource:Q18171345 property:P17 ?s } }
King of Spain Member of the Congress of Deputies of Spain Prime Minister of Spain
action union
action filter_type
action find
entity King of Spain
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Member of the Congress of Deputies of Spain
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Prime Minister of Spain
relation country
type designation for an administrative territorial entity
['King of Spain', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Member of the Congress of Deputies of Spain', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Prime Minister of Spain', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { resource:King_of_Spain property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Member_of_the_Congress_of_Deputies_of_Spain property:country ?s } }
[]
designation for an administrative territorial entity
Q29 Q29 Q29
SYSTEM
Spain
Q29 Q29 Q29
(Q3847454,P17,c(Q15617994)) (Q18171345,P17,c(Q15617994)) (Q844587,P17,c(Q15617994))
action union
action filter_type
action find
entity Q3847454
relation P17
type Q15617994
action filter_type
action find
entity Q18171345
relation P17
type Q15617994
action filter_type
action find
entity Q844587
relation P17
type Q15617994
[ANSWER], [ANSWER] and [ANSWER] are King of [ANSWER], Member of the Congress of Deputies of [ANSWER] and Prime Minister of [ANSWER] situated in
['Q3847454', 'P17', {'concept': 'Q15617994'}] ['Q18171345', 'P17', {'concept': 'Q15617994'}] ['Q844587', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { resource:Q3847454 property:P17 ?s . ?s rdf:type ontology:Q15617994 } UNION { ?s rdf:type ontology:Q15617994 . resource:Q18171345 property:P17 ?s } }
Spain Spain Spain
Spain, Spain and Spain are King of Spain, Member of the Congress of Deputies of Spain and Prime Minister of Spain situated in
Spain Spain Spain
action union
action filter_type
action find
entity King of Spain
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Member of the Congress of Deputies of Spain
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Prime Minister of Spain
relation country
type designation for an administrative territorial entity
['King of Spain', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Member of the Congress of Deputies of Spain', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Prime Minister of Spain', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { resource:King_of_Spain property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Member_of_the_Congress_of_Deputies_of_Spain property:country ?s } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P530
Q1048835
USER
Which political territories have diplomatic relations with Spain ?
(Q29,P530,c(Q1048835))
action filter_type
action find
entity Q29
relation P530
type Q1048835
['Q29', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { resource:Q29 property:P530 ?c . ?c rdf:type ontology:Q1048835 }
Spain
action filter_type
action find
entity Spain
relation diplomatic relation
type political territorial entity
['Spain', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Spain property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
(Q29,P530,c(Q1048835))
action filter_type
action find
entity Q29
relation P530
type Q1048835
[ANSWERS] have diplomatic relations with Spain
['Q29', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { resource:Q29 property:P530 ?c . ?c rdf:type ontology:Q1048835 }
Australia Germany
Australia and Germany have diplomatic relations with Spain
Australia Germany
action filter_type
action find
entity Spain
relation diplomatic relation
type political territorial entity
['Spain', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Spain property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q29
Q15617994
USER
And which administrative territory?
(Q29,P530,c(Q15617994))
action filter_type
action find
entity Q29
relation P530
type Q15617994
['Q29', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q29 property:P530 ?s . ?s rdf:type ontology:Q15617994 }
Spain
action filter_type
action find
entity Spain
relation diplomatic relation
type designation for an administrative territorial entity
['Spain', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Spain property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q38
SYSTEM
Brazil, Italy
Q155 Q38
(Q29,P530,c(Q15617994))
action filter_type
action find
entity Q29
relation P530
type Q15617994
[ANSWERS]
['Q29', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q29 property:P530 ?s . ?s rdf:type ontology:Q15617994 }
Brazil Italy
Brazil Italy
action filter_type
action find
entity Spain
relation diplomatic relation
type designation for an administrative territorial entity
['Spain', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Spain property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5408264
P27
Q502895
USER
Are Eugenio Centenaro Kerrigan a native of those administrative territories ?
(Q5408264,P27,Q155) (Q5408264,P27,Q38)
action is_in
entity prev_answer
action find
entity Q5408264
relation P27
['Q5408264', 'P27', 'Q155'] ['Q5408264', 'P27', 'Q38']
ASK WHERE { VALUES ( ?o ) { ( resource:Q155 ) ( resource:Q38 ) } . resource:Q5408264 property:P27 ?o }
Eugenio Centenaro Kerrigan
action is_in
entity prev_answer
action find
entity Eugenio Centenaro Kerrigan
relation country of citizenship
['Eugenio Centenaro Kerrigan', 'country of citizenship', 'Brazil'] ['Eugenio Centenaro Kerrigan', 'country of citizenship', 'Italy']
ASK WHERE { VALUES ( ?o ) { ( resource:Brazil ) ( resource:Italy ) } . resource:Eugenio_Centenaro_Kerrigan property:country_of_citizenship ?o }
[]
common name
SYSTEM
YES
(Q5408264,P27,Q155) (Q5408264,P27,Q38)
action is_in
entity prev_answer
action find
entity Q5408264
relation P27
[ANSWER]
['Q5408264', 'P27', 'Q155'] ['Q5408264', 'P27', 'Q38']
ASK WHERE { VALUES ( ?o ) { ( resource:Q155 ) ( resource:Q38 ) } . resource:Q5408264 property:P27 ?o }
Yes
action is_in
entity prev_answer
action find
entity Eugenio Centenaro Kerrigan
relation country of citizenship
['Eugenio Centenaro Kerrigan', 'country of citizenship', 'Brazil'] ['Eugenio Centenaro Kerrigan', 'country of citizenship', 'Italy']
ASK WHERE { VALUES ( ?o ) { ( resource:Brazil ) ( resource:Italy ) } . resource:Eugenio_Centenaro_Kerrigan property:country_of_citizenship ?o }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q408 Q271350
P530
Q15617994
USER
Does Vado Ligure have a diplomatic relationship with Australia ?
(Q408,P530,Q271350)
action is_in
entity Q271350
action find
entity Q408
relation P530
['Q408', 'P530', 'Q271350']
ASK WHERE { resource:Q408 property:P530 resource:Q271350 }
Australia Vado Ligure
action is_in
entity Vado Ligure
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Vado Ligure']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Vado_Ligure }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q408,P530,Q271350)
action is_in
entity Q271350
action find
entity Q408
relation P530
[ANSWER]
['Q408', 'P530', 'Q271350']
ASK WHERE { resource:Q408 property:P530 resource:Q271350 }
No
action is_in
entity Vado Ligure
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Vado Ligure']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Vado_Ligure }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q786 Q408 Q183
P530
Q1048835
USER
Does Dominican Republic have diplomatic relations with Australia and Germany ?
(Q786,P530,Q408) (Q786,P530,Q183)
action is_in
entity Q786
action intersection
action find_reverse
entity Q408
relation P530
action find_reverse
entity Q183
relation P530
['Q786', 'P530', 'Q408'] ['Q786', 'P530', 'Q183']
ASK WHERE { resource:Q786 property:P530 resource:Q408 . resource:Q786 property:P530 resource:Q183 }
Dominican Republic Australia Germany
action is_in
entity Dominican Republic
action intersection
action find_reverse
entity Australia
relation diplomatic relation
action find_reverse
entity Germany
relation diplomatic relation
['Dominican Republic', 'diplomatic relation', 'Australia'] ['Dominican Republic', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Dominican_Republic property:diplomatic_relation resource:Australia . resource:Dominican_Republic property:diplomatic_relation resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q786,P530,Q408) (Q786,P530,Q183)
action is_in
entity Q786
action intersection
action find_reverse
entity Q408
relation P530
action find_reverse
entity Q183
relation P530
[ANSWER]
['Q786', 'P530', 'Q408'] ['Q786', 'P530', 'Q183']
ASK WHERE { resource:Q786 property:P530 resource:Q408 . resource:Q786 property:P530 resource:Q183 }
Yes
action is_in
entity Dominican Republic
action intersection
action find_reverse
entity Australia
relation diplomatic relation
action find_reverse
entity Germany
relation diplomatic relation
['Dominican Republic', 'diplomatic relation', 'Australia'] ['Dominican Republic', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Dominican_Republic property:diplomatic_relation resource:Australia . resource:Dominican_Republic property:diplomatic_relation resource:Germany }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q155
P463
Q484652 Q35749
USER
How many international organizations or parliaments had Brazil as their member ?
(Q155,P463,c(Q484652)) (Q155,P463,c(Q35749))
action count
action union
action filter_type
action find
entity Q155
relation P463
type Q484652
action filter_type
action find
entity Q155
relation P463
type Q35749
['Q155', 'P463', {'concept': 'Q484652'}] ['Q155', 'P463', {'concept': 'Q35749'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { { ?b rdf:type ontology:Q484652 . resource:Q155 property:P463 ?b } UNION { resource:Q155 property:P463 ?b . ?b rdf:type ontology:Q35749 } }
Brazil
action count
action union
action filter_type
action find
entity Brazil
relation member of
type international organization
action filter_type
action find
entity Brazil
relation member of
type parliament
['Brazil', 'member of', {'concept': 'international organization'}] ['Brazil', 'member of', {'concept': 'parliament'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { { ?b rdf:type ontology:international_organization . resource:Brazil property:member_of ?b } UNION { resource:Brazil property:member_of ?b . ?b rdf:type ontology:parliament } }
[]
international organization parliament
SYSTEM
10
Q499151 Q4230 Q8475 Q1065 Q17495 Q19771 Q838116 Q47488 Q471690 Q1043527
(Q155,P463,c(Q484652)) (Q155,P463,c(Q35749))
action count
action union
action filter_type
action find
entity Q155
relation P463
type Q484652
action filter_type
action find
entity Q155
relation P463
type Q35749
[ANSWER]
['Q155', 'P463', {'concept': 'Q484652'}] ['Q155', 'P463', {'concept': 'Q35749'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { { ?b rdf:type ontology:Q484652 . resource:Q155 property:P463 ?b } UNION { resource:Q155 property:P463 ?b . ?b rdf:type ontology:Q35749 } }
Latin American Parliament Union of South American Nations Interpol United Nations Universal Postal Union G20 G4 nations International Criminal Court Andean Community of Nations Multilateral Investment Guarantee Agency
10
action count
action union
action filter_type
action find
entity Brazil
relation member of
type international organization
action filter_type
action find
entity Brazil
relation member of
type parliament
['Brazil', 'member of', {'concept': 'international organization'}] ['Brazil', 'member of', {'concept': 'parliament'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { { ?b rdf:type ontology:international_organization . resource:Brazil property:member_of ?b } UNION { resource:Brazil property:member_of ?b . ?b rdf:type ontology:parliament } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections 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 ?u WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?h ) { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?e ) WHERE { ?d property:P530 ?q . ?d rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?d } } . { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?g ) WHERE { ?u property:P530 ?v . ?u rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?u } . FILTER ( ?g = ?h ) }
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 ?u WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?h ) { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?e ) WHERE { ?d property:diplomatic_relation ?q . ?d rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } } . { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?g ) WHERE { ?u property:diplomatic_relation ?v . ?u rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?g = ?h ) }
[]
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] is known to have diplomatic connections with max number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?h ) { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?e ) WHERE { ?d property:P530 ?q . ?d rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?d } } . { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?g ) WHERE { ?u property:P530 ?v . ?u rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?u } . FILTER ( ?g = ?h ) }
Germany
Germany is known to have diplomatic connections 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 ?u WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?h ) { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?e ) WHERE { ?d property:diplomatic_relation ?q . ?d rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } } . { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?g ) WHERE { ?u property:diplomatic_relation ?v . ?u rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?g = ?h ) }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q183 Q24061194 Q2492
P6
Q502895
USER
Does that political territory have Dimitra Kafalidou and Konrad Adenauer as its administrative leader ?
(Q183,P6,Q24061194) (Q183,P6,Q2492)
action is_in
entity Q183
action intersection
action find_reverse
entity Q24061194
relation P6
action find_reverse
entity Q2492
relation P6
['Q183', 'P6', 'Q24061194'] ['Q183', 'P6', 'Q2492']
ASK WHERE { resource:Q183 property:P6 resource:Q24061194 . resource:Q183 property:P6 resource:Q2492 }
Germany Dimitra Kafalidou Konrad Adenauer
action is_in
entity Germany
action intersection
action find_reverse
entity Dimitra Kafalidou
relation head of government
action find_reverse
entity Konrad Adenauer
relation head of government
['Germany', 'head of government', 'Dimitra Kafalidou'] ['Germany', 'head of government', 'Konrad Adenauer']
ASK WHERE { resource:Germany property:head_of_government resource:Dimitra_Kafalidou . resource:Germany property:head_of_government resource:Konrad_Adenauer }
[]
common name
SYSTEM
NO and YES respectively
(Q183,P6,Q24061194) (Q183,P6,Q2492)
action is_in
entity Q183
action intersection
action find_reverse
entity Q24061194
relation P6
action find_reverse
entity Q2492
relation P6
[ANSWER]
['Q183', 'P6', 'Q24061194'] ['Q183', 'P6', 'Q2492']
ASK WHERE { resource:Q183 property:P6 resource:Q24061194 . resource:Q183 property:P6 resource:Q2492 }
NO and YES respectively
action is_in
entity Germany
action intersection
action find_reverse
entity Dimitra Kafalidou
relation head of government
action find_reverse
entity Konrad Adenauer
relation head of government
['Germany', 'head of government', 'Dimitra Kafalidou'] ['Germany', 'head of government', 'Konrad Adenauer']
ASK WHERE { resource:Germany property:head_of_government resource:Dimitra_Kafalidou . resource:Germany property:head_of_government resource:Konrad_Adenauer }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q423
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relationships with greater number of political territories than North Korea ?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q423
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?x ) AS ?w ) WHERE { ?z property:P530 ?x . ?z rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { resource:Q423 property:P530 ?k . ?k rdf:type ontology:Q15617994 } } . FILTER ( ?w > ?r ) }
North Korea
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 North Korea
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 ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?x ) AS ?w ) WHERE { ?z property:diplomatic_relation ?x . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { resource:North_Korea property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?w > ?r ) }
[]
designation for an administrative territorial entity political territorial entity
Q155 Q38
SYSTEM
Brazil, Italy
Q155 Q38
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q423
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with greater number of political territories than North Korea
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?x ) AS ?w ) WHERE { ?z property:P530 ?x . ?z rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { resource:Q423 property:P530 ?k . ?k rdf:type ontology:Q15617994 } } . FILTER ( ?w > ?r ) }
Brazil Italy
Brazil and Italy have diplomatic relationships with greater number of political territories than North Korea
Brazil Italy
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 North Korea
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 ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?x ) AS ?w ) WHERE { ?z property:diplomatic_relation ?x . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { resource:North_Korea property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?w > ?r ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q148
P530
Q15617994 Q1048835
USER
And what about People's Republic of China?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q148
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?l ) WHERE { ?d property:P530 ?t . ?d rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { resource:Q148 property:P530 ?o . ?o rdf:type ontology:Q1048835 } } . FILTER ( ?l > ?w ) }
People's Republic of China
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 People's Republic of China
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?l ) WHERE { ?d property:diplomatic_relation ?t . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { resource:People's_Republic_of_China property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity } } . FILTER ( ?l > ?w ) }
[]
designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q155 Q884 Q33 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q20 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q148
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?l ) WHERE { ?d property:P530 ?t . ?d rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { resource:Q148 property:P530 ?o . ?o rdf:type ontology:Q1048835 } } . FILTER ( ?l > ?w ) }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey Brazil South Korea Finland United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Norway Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
Italy Brazil United States of America
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 People's Republic of China
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?l ) WHERE { ?d property:diplomatic_relation ?t . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { resource:People's_Republic_of_China property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity } } . FILTER ( ?l > ?w ) }
[]