Simple Question (Direct)
Simple Question
Q15658202
P641
Q349
USER
What was the sport that Ademir Ribeiro Souza was a part of ?
(Q15658202,P641,c(Q349))
action filter_type
action find
entity Q15658202
relation P641
type Q349
['Q15658202', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { resource:Q15658202 property:P641 ?c . ?c rdf:type ontology:Q349 }
Ademir Ribeiro Souza
action filter_type
action find
entity Ademir Ribeiro Souza
relation sport
type sport
['Ademir Ribeiro Souza', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { resource:Ademir_Ribeiro_Souza property:sport ?c . ?c rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q15658202,P641,c(Q349))
action filter_type
action find
entity Q15658202
relation P641
type Q349
The sport that Ademir Ribeiro Souza was a part of was the [ANSWER]
['Q15658202', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { resource:Q15658202 property:P641 ?c . ?c rdf:type ontology:Q349 }
association football
The sport that Ademir Ribeiro Souza was a part of was the association football
association football
action filter_type
action find
entity Ademir Ribeiro Souza
relation sport
type sport
['Ademir Ribeiro Souza', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { resource:Ademir_Ribeiro_Souza property:sport ?c . ?c rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15658202
P19
Q15617994
USER
Which administrative territory was that person born at ?
(Q2736,P19,c(Q15617994))
action filter_type
action find
entity Q15658202
relation P19
type Q15617994
['Q2736', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q15658202 property:P19 ?w . ?w rdf:type ontology:Q15617994 }
Ademir Ribeiro Souza
action filter_type
action find
entity Ademir Ribeiro Souza
relation place of birth
type designation for an administrative territorial entity
['association football', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Ademir_Ribeiro_Souza property:place_of_birth ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
(Q2736,P19,c(Q15617994))
action filter_type
action find
entity Q15658202
relation P19
type Q15617994
That person was born in [ANSWER]
['Q2736', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q15658202 property:P19 ?w . ?w rdf:type ontology:Q15617994 }
Brazil
That person was born in Brazil
Brazil
action filter_type
action find
entity Ademir Ribeiro Souza
relation place of birth
type designation for an administrative territorial entity
['association football', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Ademir_Ribeiro_Souza property:place_of_birth ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q155 Q77
P47
Q15617994
USER
Does Uruguay share border with that one ?
(Q155,P47,Q77)
action is_in
entity Q77
action find
entity Q155
relation P47
['Q155', 'P47', 'Q77']
ASK WHERE { resource:Q155 property:P47 resource:Q77 }
Brazil Uruguay
action is_in
entity Uruguay
action find
entity Brazil
relation shares border with
['Brazil', 'shares border with', 'Uruguay']
ASK WHERE { resource:Brazil property:shares_border_with resource:Uruguay }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q155,P47,Q77)
action is_in
entity Q77
action find
entity Q155
relation P47
[ANSWER]
['Q155', 'P47', 'Q77']
ASK WHERE { resource:Q155 property:P47 resource:Q77 }
Yes
action is_in
entity Uruguay
action find
entity Brazil
relation shares border with
['Brazil', 'shares border with', 'Uruguay']
ASK WHERE { resource:Brazil property:shares_border_with resource:Uruguay }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5417985 Q77
P530 P17
Q1048835
USER
Which political territories have diplomatic relationships with Uruguay or are Everything Goes located in ?
OR((Q77,P530,c(Q1048835)), (Q5417985,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q77
relation P530
action find
entity Q5417985
relation P17
type Q1048835
{'OR': [['Q77', 'P530', {'concept': 'Q1048835'}], ['Q5417985', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q77 property:P530 ?w } UNION { resource:Q5417985 property:P17 ?w } } . ?w rdf:type ontology:Q1048835 }
Everything Goes Uruguay
action filter_type
action union
action find
entity Uruguay
relation diplomatic relation
action find
entity Everything Goes
relation country
type political territorial entity
{'OR': [['Uruguay', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Everything Goes', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Uruguay property:diplomatic_relation ?w } UNION { resource:Everything_Goes property:country ?w } } . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q16 Q183
SYSTEM
Australia, Canada, Germany
Q408 Q16 Q183
OR((Q77,P530,c(Q1048835)), (Q5417985,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q77
relation P530
action find
entity Q5417985
relation P17
type Q1048835
[ANSWERS] have diplomatic relationships with Uruguay or are Everything Goes located in
{'OR': [['Q77', 'P530', {'concept': 'Q1048835'}], ['Q5417985', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q77 property:P530 ?w } UNION { resource:Q5417985 property:P17 ?w } } . ?w rdf:type ontology:Q1048835 }
Australia Canada Germany
Australia, Canada and Germany have diplomatic relationships with Uruguay or are Everything Goes located in
Australia Canada Germany
action filter_type
action union
action find
entity Uruguay
relation diplomatic relation
action find
entity Everything Goes
relation country
type political territorial entity
{'OR': [['Uruguay', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Everything Goes', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Uruguay property:diplomatic_relation ?w } UNION { resource:Everything_Goes property:country ?w } } . ?w rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q408 Q16 Q183
P1376
Q56061
USER
Which administrative territories are the county seat for Australia, Canada and Germany ?
(c(Q56061),P1376,Q408) (c(Q56061),P1376,Q16) (c(Q56061),P1376,Q183)
action union
action filter_type
action find_reverse
entity Q408
relation P1376
type Q56061
action filter_type
action find_reverse
entity Q16
relation P1376
type Q56061
action filter_type
action find_reverse
entity Q183
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q408'] [{'concept': 'Q56061'}, 'P1376', 'Q16'] [{'concept': 'Q56061'}, 'P1376', 'Q183']
SELECT DISTINCT ?p WHERE { { ?p rdf:type ontology:Q56061 . ?p property:P1376 resource:Q408 } UNION { ?p property:P1376 resource:Q16 . ?p rdf:type ontology:Q56061 } }
Australia Canada Germany
action union
action filter_type
action find_reverse
entity Australia
relation capital of
type administrative territorial entity
action filter_type
action find_reverse
entity Canada
relation capital of
type administrative territorial entity
action filter_type
action find_reverse
entity Germany
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Australia'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Canada'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Germany']
SELECT DISTINCT ?p WHERE { { ?p rdf:type ontology:administrative_territorial_entity . ?p property:capital_of resource:Australia } UNION { ?p property:capital_of resource:Canada . ?p rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q64 Q586 Q1930
SYSTEM
Berlin, Bonn, Ottawa
Q3114 Q1930 Q586 Q64
(c(Q56061),P1376,Q408) (c(Q56061),P1376,Q16) (c(Q56061),P1376,Q183)
action union
action filter_type
action find_reverse
entity Q408
relation P1376
type Q56061
action filter_type
action find_reverse
entity Q16
relation P1376
type Q56061
action filter_type
action find_reverse
entity Q183
relation P1376
type Q56061
[ANSWERS] are the county seat for Australia, Canada and Germany
[{'concept': 'Q56061'}, 'P1376', 'Q408'] [{'concept': 'Q56061'}, 'P1376', 'Q16'] [{'concept': 'Q56061'}, 'P1376', 'Q183']
SELECT DISTINCT ?p WHERE { { ?p rdf:type ontology:Q56061 . ?p property:P1376 resource:Q408 } UNION { ?p property:P1376 resource:Q16 . ?p rdf:type ontology:Q56061 } }
Canberra Ottawa Bonn Berlin
Berlin, Bonn and Ottawa are the county seat for Australia, Canada and Germany
Berlin Bonn Ottawa
action union
action filter_type
action find_reverse
entity Australia
relation capital of
type administrative territorial entity
action filter_type
action find_reverse
entity Canada
relation capital of
type administrative territorial entity
action filter_type
action find_reverse
entity Germany
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Australia'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Canada'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Germany']
SELECT DISTINCT ?p WHERE { { ?p rdf:type ontology:administrative_territorial_entity . ?p property:capital_of resource:Australia } UNION { ?p property:capital_of resource:Canada . ?p rdf:type ontology:administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q64 Q586 Q1930
P190
Q515
USER
Which cities are the sister cities of Berlin, Bonn and Ottawa ?
(Q64,P190,c(Q515)) (Q586,P190,c(Q515)) (Q1930,P190,c(Q515))
action union
action filter_type
action find
entity Q64
relation P190
type Q515
action filter_type
action find
entity Q586
relation P190
type Q515
action filter_type
action find
entity Q1930
relation P190
type Q515
['Q64', 'P190', {'concept': 'Q515'}] ['Q586', 'P190', {'concept': 'Q515'}] ['Q1930', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { { resource:Q64 property:P190 ?y . ?y rdf:type ontology:Q515 } UNION { resource:Q586 property:P190 ?y . ?y rdf:type ontology:Q515 } }
Berlin Bonn Ottawa
action union
action filter_type
action find
entity Berlin
relation sister city
type city
action filter_type
action find
entity Bonn
relation sister city
type city
action filter_type
action find
entity Ottawa
relation sister city
type city
['Berlin', 'sister city', {'concept': 'city'}] ['Bonn', 'sister city', {'concept': 'city'}] ['Ottawa', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { { resource:Berlin property:sister_city ?y . ?y rdf:type ontology:city } UNION { resource:Bonn property:sister_city ?y . ?y rdf:type ontology:city } }
[]
city
Q1486 Q1486 Q1711
SYSTEM
Buenos Aires for 1st, 2nd, Potsdam for 3rd
Q9005 Q3935 Q1486 Q34217 Q485581 Q1711 Q221283 Q7568 Q1486
(Q64,P190,c(Q515)) (Q586,P190,c(Q515)) (Q1930,P190,c(Q515))
action union
action filter_type
action find
entity Q64
relation P190
type Q515
action filter_type
action find
entity Q586
relation P190
type Q515
action filter_type
action find
entity Q1930
relation P190
type Q515
[ANSWERS]
['Q64', 'P190', {'concept': 'Q515'}] ['Q586', 'P190', {'concept': 'Q515'}] ['Q1930', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { { resource:Q64 property:P190 ?y . ?y rdf:type ontology:Q515 } UNION { resource:Q586 property:P190 ?y . ?y rdf:type ontology:Q515 } }
Brussels Windhoek Buenos Aires Oxford Aveiro Potsdam Cape Coast Yogyakarta Buenos Aires
Buenos Aires, Buenos Aires and Potsdam are the sister cities of Berlin, Bonn and Ottawa
Buenos Aires Buenos Aires Potsdam
action union
action filter_type
action find
entity Berlin
relation sister city
type city
action filter_type
action find
entity Bonn
relation sister city
type city
action filter_type
action find
entity Ottawa
relation sister city
type city
['Berlin', 'sister city', {'concept': 'city'}] ['Bonn', 'sister city', {'concept': 'city'}] ['Ottawa', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { { resource:Berlin property:sister_city ?y . ?y rdf:type ontology:city } UNION { resource:Bonn property:sister_city ?y . ?y rdf:type ontology:city } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1711
P6
Q502895
USER
Which person has that city as its head of government ?
(Q1711,P6,c(Q502895))
action filter_type
action find
entity Q1711
relation P6
type Q502895
['Q1711', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q1711 property:P6 ?g . ?g rdf:type ontology:Q502895 }
Potsdam
action filter_type
action find
entity Potsdam
relation head of government
type common name
['Potsdam', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Potsdam property:head_of_government ?g . ?g rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1486
SYSTEM
Did you mean Buenos Aires ?
Q1486 Q1486 Q1711
(Q1486,P6,c(Q502895)) (Q1486,P6,c(Q502895)) (Q1711,P6,c(Q502895))
[ANSWER]
['Q1486', 'P6', {'concept': 'Q502895'}] ['Q1486', 'P6', {'concept': 'Q502895'}] ['Q1711', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q1711 property:P6 ?g . ?g rdf:type ontology:Q502895 }
Buenos Aires Buenos Aires Potsdam
Did you mean Buenos Aires ?
Buenos Aires
['Buenos Aires', 'head of government', {'concept': 'common name'}] ['Buenos Aires', 'head of government', {'concept': 'common name'}] ['Potsdam', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Potsdam property:head_of_government ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Potsdam. Could you tell me the answer for that?
(Q1711,P6,c(Q502895))
Q1711
['Q1711', 'P6', {'concept': 'Q502895'}]
['Potsdam', 'head of government', {'concept': 'common name'}]
[]
Q1682855
SYSTEM
Jann Jakobs
Q1682855
(Q1711,P6,c(Q502895))
action filter_type
action find
entity Q1711
relation P6
type Q502895
[ANSWER] has that city as its head of government
['Q1711', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q1711 property:P6 ?g . ?g rdf:type ontology:Q502895 }
Jann Jakobs
Jann Jakobs has that city as its head of government
Jann Jakobs
action filter_type
action find
entity Potsdam
relation head of government
type common name
['Potsdam', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Potsdam property:head_of_government ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1682855
P39
Q12737077
USER
Which occupation was a position held by that person ?
(Q1682855,P39,c(Q12737077))
action filter_type
action find
entity Q1682855
relation P39
type Q12737077
['Q1682855', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q1682855 property:P39 ?j . ?j rdf:type ontology:Q12737077 }
Jann Jakobs
action filter_type
action find
entity Jann Jakobs
relation position held
type occupation
['Jann Jakobs', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Jann_Jakobs property:position_held ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q30185
SYSTEM
mayor
Q30185
(Q1682855,P39,c(Q12737077))
action filter_type
action find
entity Q1682855
relation P39
type Q12737077
The [ANSWER] was a position held by that person
['Q1682855', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q1682855 property:P39 ?j . ?j rdf:type ontology:Q12737077 }
mayor
The mayor was a position held by that person
mayor
action filter_type
action find
entity Jann Jakobs
relation position held
type occupation
['Jann Jakobs', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Jann_Jakobs property:position_held ?j . ?j rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P101
Q12737077 Q2342494
USER
Which occupations are the field of work of greater number of collectables than that occupation ?
(c(Q2342494),P101,c(Q12737077))
action greater
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action count
action filter_type
action find
entity Q30185
relation P101
type Q12737077
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:P101 ?e . ?e rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q2342494 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { resource:Q30185 property:P101 ?u . ?u rdf:type ontology:Q12737077 } } . FILTER ( ?o > ?g ) }
action greater
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action count
action filter_type
action find
entity mayor
relation field of work
type occupation
[{'concept': 'collectable'}, 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:field_of_work ?e . ?e rdf:type ontology:occupation . ?s rdf:type ontology:collectable } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { resource:mayor property:field_of_work ?u . ?u rdf:type ontology:occupation } } . FILTER ( ?o > ?g ) }
[]
occupation collectable
Q15954519
SYSTEM
alchemist
Q15954519
(c(Q2342494),P101,c(Q12737077))
action greater
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action count
action filter_type
action find
entity Q30185
relation P101
type Q12737077
[ANSWER] is the field of work of greater number of collectables than that occupation
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:P101 ?e . ?e rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q2342494 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { resource:Q30185 property:P101 ?u . ?u rdf:type ontology:Q12737077 } } . FILTER ( ?o > ?g ) }
alchemist
Alchemist is the field of work of greater number of collectables than that occupation
alchemist
action greater
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action count
action filter_type
action find
entity mayor
relation field of work
type occupation
[{'concept': 'collectable'}, 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?o ) WHERE { ?s property:field_of_work ?e . ?e rdf:type ontology:occupation . ?s rdf:type ontology:collectable } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { resource:mayor property:field_of_work ?u . ?u rdf:type ontology:occupation } } . FILTER ( ?o > ?g ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q15617994 Q1048835
USER
How many political territories have ambassadorial relations with approximately 45 political territories or administrative territories ?
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 45
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?b ) WHERE { ?s rdf:type ?z . VALUES ( ?z ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?n } . FILTER ( ?b = 45 ) }
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 45
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?b ) WHERE { ?s rdf:type ?z . VALUES ( ?z ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?n } . FILTER ( ?b = 45 ) }
[]
political territorial entity designation for an administrative territorial entity political territorial entity
SYSTEM
5
Q40 Q35 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 45
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?b ) WHERE { ?s rdf:type ?z . VALUES ( ?z ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?n } . FILTER ( ?b = 45 ) }
Austria Denmark Canada New Zealand Jamaica
5
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 45
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?b ) WHERE { ?s rdf:type ?z . VALUES ( ?z ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?n } . FILTER ( ?b = 45 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q240918 Q408
P530 P27
Q15617994
USER
Which administrative territories have a diplomatic relationship with Australia or are András Balogh an inhabitant of ?
OR((Q408,P530,c(Q15617994)), (Q240918,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q408
relation P530
action find
entity Q240918
relation P27
type Q15617994
{'OR': [['Q408', 'P530', {'concept': 'Q15617994'}], ['Q240918', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q408 property:P530 ?r } UNION { resource:Q240918 property:P27 ?r } } . ?r rdf:type ontology:Q15617994 }
András Balogh Australia
action filter_type
action union
action find
entity Australia
relation diplomatic relation
action find
entity András Balogh
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['András Balogh', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Australia property:diplomatic_relation ?r } UNION { resource:András_Balogh property:country_of_citizenship ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55 Q881 Q574 Q117 Q233 Q783 Q298 Q1033 Q884 Q34
SYSTEM
Some of them are Netherlands, Vietnam, East Timor, Ghana, Malta, Honduras, Chile, Nigeria, South Korea, Sweden
Q702 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q786 Q924 Q712 Q711 Q836 Q837 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q244 Q33 Q921 Q31 Q30 Q37 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q424 Q851 Q733 Q854 Q734 Q736 Q233 Q20 Q1041 Q27 Q28 Q29 Q1027 Q1020 Q843 Q1029 Q225 Q224 Q221 Q96 Q229 Q17 Q902 Q1036 Q1033 Q1030 Q191 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q215 Q218 Q219 Q916 Q833 Q977 Q1009 Q683 Q686 Q574 Q79 Q77 Q878 Q774 Q817 Q810 Q811 Q819 Q678 Q33788 Q869 Q953
OR((Q408,P530,c(Q15617994)), (Q240918,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q408
relation P530
action find
entity Q240918
relation P27
type Q15617994
[ANSWERS] have a diplomatic relationship with Australia or are András Balogh an inhabitant of
{'OR': [['Q408', 'P530', {'concept': 'Q15617994'}], ['Q240918', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q408 property:P530 ?r } UNION { resource:Q240918 property:P27 ?r } } . ?r rdf:type ontology:Q15617994 }
Federated States of Micronesia Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Dominican Republic Tanzania Fiji Mongolia Myanmar Nepal Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil El Salvador Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Barbados Finland Brunei Belgium United States of America Lithuania Poland Sweden Philippines Switzerland Italy Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Guyana Ecuador Malta Norway Senegal Ireland Hungary Spain Mauritius Malawi Pakistan Mozambique Bosnia and Herzegovina Croatia Republic of Macedonia Mexico Cyprus Japan Bangladesh Uganda Nigeria Namibia Estonia Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Slovenia Romania Bulgaria Angola Malaysia Djibouti Cameroon Samoa Vanuatu East Timor Egypt Uruguay United Arab Emirates Guatemala Kuwait Jordan Nicaragua Laos Tonga New Caledonia Thailand Zambia
Netherlands, Vietnam, East Timor, Ghana, Malta, Honduras, Chile, Nigeria, South Korea and Sweden have a diplomatic relationship with Australia or are András Balogh an inhabitant of
Netherlands Vietnam East Timor Ghana Malta Honduras Chile Nigeria South Korea Sweden
action filter_type
action union
action find
entity Australia
relation diplomatic relation
action find
entity András Balogh
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['András Balogh', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Australia property:diplomatic_relation ?r } UNION { resource:András_Balogh property:country_of_citizenship ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q227
P530
Q15617994 Q1048835 Q15617994
USER
Which administrative territories have diplomatic relationships with lesser number of political territories and administrative territories than Azerbaijan ?
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q227
relation P530
type Q1048835
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) ?p WHERE { { ?s rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 . ?s property:P530 ?p } UNION { ?s rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 . ?s property:P530 ?p } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:P530 resource:Q227 . { VALUES ( ?m ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?b rdf:type ?m } } } . FILTER ( ?y < ?j ) }
Azerbaijan
action less
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Azerbaijan
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) ?p WHERE { { ?s rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:diplomatic_relation ?p } UNION { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:diplomatic_relation ?p } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:diplomatic_relation resource:Azerbaijan . { VALUES ( ?m ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?b rdf:type ?m } } } . FILTER ( ?y < ?j ) }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
Q230 Q55 Q184
SYSTEM
Georgia, Netherlands, Belarus
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q784 Q265 Q712 Q710 Q717 Q837 Q398 Q657 Q792 Q790 Q958 Q986 Q242 Q244 Q811 Q924 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q736 Q786 Q228 Q225 Q221 Q96 Q902 Q1036 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q117 Q754 Q750 Q211 Q217 Q214 Q218 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q858 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788 Q869
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q227
relation P530
type Q1048835
type Q15617994
[ANSWERS] have diplomatic relationships with lesser number of political territories and administrative territories than Azerbaijan
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) ?p WHERE { { ?s rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 . ?s property:P530 ?p } UNION { ?s rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 . ?s property:P530 ?p } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:P530 resource:Q227 . { VALUES ( ?m ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?b rdf:type ?m } } } . FILTER ( ?y < ?j ) }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Dominica Uzbekistan Fiji Kiribati Venezuela Nepal Bahrain Chad El Salvador Haiti South Sudan Eritrea Belize Barbados Nicaragua Tanzania Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Morocco Ecuador Dominican Republic Andorra Bosnia and Herzegovina Republic of Macedonia Mexico Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ghana Trinidad and Tobago Bolivia Latvia Republic of Moldova Slovakia Romania Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Syria Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia Thailand
Georgia, Netherlands and Belarus have diplomatic relationships with lesser number of political territories and administrative territories than Azerbaijan
Georgia Netherlands Belarus
action less
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Azerbaijan
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) ?p WHERE { { ?s rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:diplomatic_relation ?p } UNION { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:diplomatic_relation ?p } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:diplomatic_relation resource:Azerbaijan . { VALUES ( ?m ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?b rdf:type ?m } } } . FILTER ( ?y < ?j ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q686
P530
Q15617994 Q1048835 Q15617994
USER
And also tell me about Vanuatu?
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q686
relation P530
type Q1048835
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { ?w property:P530 resource:Q686 . { { ?w rdf:type ontology:Q1048835 } UNION { ?w rdf:type ontology:Q15617994 } } } } . FILTER ( ?k < ?e ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?f WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?f } }
Vanuatu
action less
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Vanuatu
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { ?w property:diplomatic_relation resource:Vanuatu . { { ?w rdf:type ontology:political_territorial_entity } UNION { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?k < ?e ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?f WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?f } }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
Q929 Q842 Q29999
SYSTEM
Central African Republic, Oman, Kingdom of the Netherlands
Q702 Q784 Q265 Q712 Q710 Q837 Q790 Q242 Q929 Q29999 Q854 Q730 Q1013 Q232 Q1027 Q842 Q1032 Q697 Q695 Q754 Q912 Q970 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q686
relation P530
type Q1048835
type Q15617994
[ANSWERS]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { ?w property:P530 resource:Q686 . { { ?w rdf:type ontology:Q1048835 } UNION { ?w rdf:type ontology:Q15617994 } } } } . FILTER ( ?k < ?e ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?f WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?f } }
Federated States of Micronesia Dominica Uzbekistan Fiji Kiribati Nepal Haiti Belize Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Lesotho Kazakhstan Mauritius Oman Niger Nauru Palau Trinidad and Tobago Mali Comoros Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic Oman Kingdom of the Netherlands
action less
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Vanuatu
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { ?w property:diplomatic_relation resource:Vanuatu . { { ?w rdf:type ontology:political_territorial_entity } UNION { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?k < ?e ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?f WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?f } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q55 Q174270
P276
Q1190554
USER
How many events are located at Netherlands or Amorium ?
(c(Q1190554),P276,Q55) (c(Q1190554),P276,Q174270)
action count
action union
action filter_type
action find_reverse
entity Q55
relation P276
type Q1190554
action filter_type
action find_reverse
entity Q174270
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q55'] [{'concept': 'Q1190554'}, 'P276', 'Q174270']
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { { ?b property:P276 resource:Q55 . ?b rdf:type ontology:Q1190554 } UNION { ?b property:P276 resource:Q174270 . ?b rdf:type ontology:Q1190554 } }
Netherlands Amorium
action count
action union
action filter_type
action find_reverse
entity Netherlands
relation location
type event
action filter_type
action find_reverse
entity Amorium
relation location
type event
[{'concept': 'event'}, 'location', 'Netherlands'] [{'concept': 'event'}, 'location', 'Amorium']
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { { ?b property:location resource:Netherlands . ?b rdf:type ontology:event } UNION { ?b property:location resource:Amorium . ?b rdf:type ontology:event } }
[]
event
SYSTEM
2
Q151340 Q1669285
(c(Q1190554),P276,Q55) (c(Q1190554),P276,Q174270)
action count
action union
action filter_type
action find_reverse
entity Q55
relation P276
type Q1190554
action filter_type
action find_reverse
entity Q174270
relation P276
type Q1190554
[ANSWER]
[{'concept': 'Q1190554'}, 'P276', 'Q55'] [{'concept': 'Q1190554'}, 'P276', 'Q174270']
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { { ?b property:P276 resource:Q55 . ?b rdf:type ontology:Q1190554 } UNION { ?b property:P276 resource:Q174270 . ?b rdf:type ontology:Q1190554 } }
Battle of France Sack of Amorium
2
action count
action union
action filter_type
action find_reverse
entity Netherlands
relation location
type event
action filter_type
action find_reverse
entity Amorium
relation location
type event
[{'concept': 'event'}, 'location', 'Netherlands'] [{'concept': 'event'}, 'location', 'Amorium']
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { { ?b property:location resource:Netherlands . ?b rdf:type ontology:event } UNION { ?b property:location resource:Amorium . ?b rdf:type ontology:event } }
[]