Simple Question (Direct)
Simple Question
Q3047445
P21
Q290
USER
Which sex does Edgar Demange belong to ?
(Q3047445,P21,c(Q290))
action filter_type
action find
entity Q3047445
relation P21
type Q290
['Q3047445', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q290 . resource:Q3047445 property:P21 ?g }
Edgar Demange
action filter_type
action find
entity Edgar Demange
relation gender
type sex
['Edgar Demange', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sex . resource:Edgar_Demange property:gender ?g }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3047445,P21,c(Q290))
action filter_type
action find
entity Q3047445
relation P21
type Q290
Edgar Demange belongs to [ANSWER]
['Q3047445', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q290 . resource:Q3047445 property:P21 ?g }
male
Edgar Demange belongs to male
male
action filter_type
action find
entity Edgar Demange
relation gender
type sex
['Edgar Demange', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sex . resource:Edgar_Demange property:gender ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3047445
P106
Q28640
USER
What are the job of Edgar Demange ?
(Q3047445,P106,c(Q28640))
action filter_type
action find
entity Q3047445
relation P106
type Q28640
['Q3047445', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?s WHERE { resource:Q3047445 property:P106 ?s . ?s rdf:type ontology:Q28640 }
Edgar Demange
action filter_type
action find
entity Edgar Demange
relation occupation
type profession
['Edgar Demange', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?s WHERE { resource:Edgar_Demange property:occupation ?s . ?s rdf:type ontology:profession }
[]
profession
Q185351 Q40348
SYSTEM
jurist, lawyer
Q185351 Q40348
(Q3047445,P106,c(Q28640))
action filter_type
action find
entity Q3047445
relation P106
type Q28640
The job of Edgar Demange are a [ANSWERS]
['Q3047445', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?s WHERE { resource:Q3047445 property:P106 ?s . ?s rdf:type ontology:Q28640 }
jurist lawyer
The job of Edgar Demange are a jurist and lawyer
jurist lawyer
action filter_type
action find
entity Edgar Demange
relation occupation
type profession
['Edgar Demange', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?s WHERE { resource:Edgar_Demange property:occupation ?s . ?s rdf:type ontology:profession }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3956186
Q28640
USER
And how about Sergio Mattarella?
(Q3956186,P106,c(Q28640))
action filter_type
action find
entity Q3956186
relation P106
type Q28640
['Q3956186', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?w WHERE { resource:Q3956186 property:P106 ?w . ?w rdf:type ontology:Q28640 }
Sergio Mattarella
action filter_type
action find
entity Sergio Mattarella
relation occupation
type profession
['Sergio Mattarella', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?w WHERE { resource:Sergio_Mattarella property:occupation ?w . ?w rdf:type ontology:profession }
[]
profession
Q40348
SYSTEM
lawyer
Q40348
(Q3956186,P106,c(Q28640))
action filter_type
action find
entity Q3956186
relation P106
type Q28640
[ANSWER]
['Q3956186', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?w WHERE { resource:Q3956186 property:P106 ?w . ?w rdf:type ontology:Q28640 }
lawyer
lawyer
action filter_type
action find
entity Sergio Mattarella
relation occupation
type profession
['Sergio Mattarella', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?w WHERE { resource:Sergio_Mattarella property:occupation ?w . ?w rdf:type ontology:profession }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q40348 Q5343340
P417
Q502895
USER
Is Edward Harrison the patron saint of that profession ?
(Q40348,P417,Q5343340)
action is_in
entity Q5343340
action find
entity Q40348
relation P417
['Q40348', 'P417', 'Q5343340']
ASK WHERE { resource:Q40348 property:P417 resource:Q5343340 }
lawyer Edward Harrison
action is_in
entity Edward Harrison
action find
entity lawyer
relation patron saint
['lawyer', 'patron saint', 'Edward Harrison']
ASK WHERE { resource:lawyer property:patron_saint resource:Edward_Harrison }
[]
common name
SYSTEM
NO
(Q40348,P417,Q5343340)
action is_in
entity Q5343340
action find
entity Q40348
relation P417
[ANSWER]
['Q40348', 'P417', 'Q5343340']
ASK WHERE { resource:Q40348 property:P417 resource:Q5343340 }
No
action is_in
entity Edward Harrison
action find
entity lawyer
relation patron saint
['lawyer', 'patron saint', 'Edward Harrison']
ASK WHERE { resource:lawyer property:patron_saint resource:Edward_Harrison }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q40348
P452
Q7748
USER
Who is part of the lawyer industry ?
(c(Q7748),P452,Q40348)
action filter_type
action find_reverse
entity Q40348
relation P452
type Q7748
[{'concept': 'Q7748'}, 'P452', 'Q40348']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q7748 . ?y property:P452 resource:Q40348 }
lawyer
action filter_type
action find_reverse
entity lawyer
relation industry
type law
[{'concept': 'law'}, 'industry', 'lawyer']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:law . ?y property:industry resource:lawyer }
[]
law
Q4122235
SYSTEM
private law
Q4122235
(c(Q7748),P452,Q40348)
action filter_type
action find_reverse
entity Q40348
relation P452
type Q7748
[ANSWER] is part of the lawyer industry
[{'concept': 'Q7748'}, 'P452', 'Q40348']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q7748 . ?y property:P452 resource:Q40348 }
private law
Private law is part of the lawyer industry
private law
action filter_type
action find_reverse
entity lawyer
relation industry
type law
[{'concept': 'law'}, 'industry', 'lawyer']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:law . ?y property:industry resource:lawyer }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q40348
P921
Q223393
USER
Which literary genre was mainly based on lawyer ?
(c(Q223393),P921,Q40348)
action filter_type
action find_reverse
entity Q40348
relation P921
type Q223393
[{'concept': 'Q223393'}, 'P921', 'Q40348']
SELECT DISTINCT ?d WHERE { ?d property:P921 resource:Q40348 . ?d rdf:type ontology:Q223393 }
lawyer
action filter_type
action find_reverse
entity lawyer
relation main subject
type literary genre
[{'concept': 'literary genre'}, 'main subject', 'lawyer']
SELECT DISTINCT ?d WHERE { ?d property:main_subject resource:lawyer . ?d rdf:type ontology:literary_genre }
[]
literary genre
Q6505093
SYSTEM
lawyer joke
Q6505093
(c(Q223393),P921,Q40348)
action filter_type
action find_reverse
entity Q40348
relation P921
type Q223393
[ANSWER] was mainly based on lawyer
[{'concept': 'Q223393'}, 'P921', 'Q40348']
SELECT DISTINCT ?d WHERE { ?d property:P921 resource:Q40348 . ?d rdf:type ontology:Q223393 }
lawyer joke
Lawyer joke was mainly based on lawyer
lawyer joke
action filter_type
action find_reverse
entity lawyer
relation main subject
type literary genre
[{'concept': 'literary genre'}, 'main subject', 'lawyer']
SELECT DISTINCT ?d WHERE { ?d property:main_subject resource:lawyer . ?d rdf:type ontology:literary_genre }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q40348
P69
Q502895
USER
Who studied at that profession ?
(c(Q502895),P69,Q6505093)
action filter_type
action find_reverse
entity Q40348
relation P69
type Q502895
[{'concept': 'Q502895'}, 'P69', 'Q6505093']
SELECT DISTINCT ?d WHERE { ?d property:P69 resource:Q40348 . ?d rdf:type ontology:Q502895 }
lawyer
action filter_type
action find_reverse
entity lawyer
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'lawyer joke']
SELECT DISTINCT ?d WHERE { ?d property:educated_at resource:lawyer . ?d rdf:type ontology:common_name }
[]
common name
Q1119283 Q3061034 Q2976811
SYSTEM
Jean-Baptiste-Moïse Jollivet, Eustache-Marie Courtin, Claude-Michel Larché
Q3164099 Q3061034 Q2976811 Q3471136 Q1119283
(c(Q502895),P69,Q6505093)
action filter_type
action find_reverse
entity Q40348
relation P69
type Q502895
[ANSWERS] studied at that profession
[{'concept': 'Q502895'}, 'P69', 'Q6505093']
SELECT DISTINCT ?d WHERE { ?d property:P69 resource:Q40348 . ?d rdf:type ontology:Q502895 }
Jean-Baptiste Galeazzini Eustache-Marie Courtin Claude-Michel Larché Samuel Guichenon Jean-Baptiste-Moïse Jollivet
Jean-Baptiste-Moïse Jollivet, Eustache-Marie Courtin and Claude-Michel Larché studied at that profession
Jean-Baptiste-Moïse Jollivet Eustache-Marie Courtin Claude-Michel Larché
action filter_type
action find_reverse
entity lawyer
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'lawyer joke']
SELECT DISTINCT ?d WHERE { ?d property:educated_at resource:lawyer . ?d rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2976811
P166
Q618779
USER
What was won by that person ?
(Q2976811,P166,c(Q618779))
action filter_type
action find
entity Q2976811
relation P166
type Q618779
['Q2976811', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?i WHERE { resource:Q2976811 property:P166 ?i . ?i rdf:type ontology:Q618779 }
Claude-Michel Larché
action filter_type
action find
entity Claude-Michel Larché
relation award received
type award
['Claude-Michel Larché', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?i WHERE { resource:Claude-Michel_Larché property:award_received ?i . ?i rdf:type ontology:award }
[]
award
Clarification for simple ques.
Q1119283
SYSTEM
Did you mean Jean-Baptiste-Moïse Jollivet ?
Q1119283 Q3061034 Q2976811
(Q1119283,P166,c(Q618779)) (Q3061034,P166,c(Q618779)) (Q2976811,P166,c(Q618779))
[ANSWER]
['Q1119283', 'P166', {'concept': 'Q618779'}] ['Q3061034', 'P166', {'concept': 'Q618779'}] ['Q2976811', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?i WHERE { resource:Q2976811 property:P166 ?i . ?i rdf:type ontology:Q618779 }
Jean-Baptiste-Moïse Jollivet Eustache-Marie Courtin Claude-Michel Larché
Did you mean Jean-Baptiste-Moïse Jollivet ?
Jean-Baptiste-Moïse Jollivet
['Jean-Baptiste-Moïse Jollivet', 'award received', {'concept': 'award'}] ['Eustache-Marie Courtin', 'award received', {'concept': 'award'}] ['Claude-Michel Larché', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?i WHERE { resource:Claude-Michel_Larché property:award_received ?i . ?i rdf:type ontology:award }
[]
Simple Question (Coreferenced)
USER
No, I meant Claude-Michel Larché. Could you tell me the answer for that?
(Q2976811,P166,c(Q618779))
Q2976811
['Q2976811', 'P166', {'concept': 'Q618779'}]
['Claude-Michel Larché', 'award received', {'concept': 'award'}]
[]
Q10855271
SYSTEM
Knight of the Legion of Honour
Q10855271
(Q2976811,P166,c(Q618779))
action filter_type
action find
entity Q2976811
relation P166
type Q618779
Was [ANSWER] was won by that person
['Q2976811', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?i WHERE { resource:Q2976811 property:P166 ?i . ?i rdf:type ontology:Q618779 }
Knight of the Legion of Honour
Was Knight of the Legion of Honour was won by that person
Knight of the Legion of Honour
action filter_type
action find
entity Claude-Michel Larché
relation award received
type award
['Claude-Michel Larché', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?i WHERE { resource:Claude-Michel_Larché property:award_received ?i . ?i rdf:type ontology:award }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q10855271 Q20078713
P166
Q502895
USER
Was Gilbert Bellan awarded with that award ?
(Q20078713,P166,Q10855271)
action is_in
entity Q10855271
action find
entity Q20078713
relation P166
['Q20078713', 'P166', 'Q10855271']
ASK WHERE { resource:Q20078713 property:P166 resource:Q10855271 }
Knight of the Legion of Honour Gilbert Bellan
action is_in
entity Knight of the Legion of Honour
action find
entity Gilbert Bellan
relation award received
['Gilbert Bellan', 'award received', 'Knight of the Legion of Honour']
ASK WHERE { resource:Gilbert_Bellan property:award_received resource:Knight_of_the_Legion_of_Honour }
[]
common name
SYSTEM
YES
(Q20078713,P166,Q10855271)
action is_in
entity Q10855271
action find
entity Q20078713
relation P166
[ANSWER]
['Q20078713', 'P166', 'Q10855271']
ASK WHERE { resource:Q20078713 property:P166 resource:Q10855271 }
Yes
action is_in
entity Knight of the Legion of Honour
action find
entity Gilbert Bellan
relation award received
['Gilbert Bellan', 'award received', 'Knight of the Legion of Honour']
ASK WHERE { resource:Gilbert_Bellan property:award_received resource:Knight_of_the_Legion_of_Honour }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q20051095 Q3047445
P19 P27
Q15617994
USER
Which administrative territories do Edgar Demange belong to or were Alejandra Castillo born at ?
OR((Q3047445,P27,c(Q15617994)), (Q20051095,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q3047445
relation P27
action find
entity Q20051095
relation P19
type Q15617994
{'OR': [['Q3047445', 'P27', {'concept': 'Q15617994'}], ['Q20051095', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q3047445 property:P27 ?r } UNION { resource:Q20051095 property:P19 ?r } } . ?r rdf:type ontology:Q15617994 }
Alejandra Castillo Edgar Demange
action filter_type
action union
action find
entity Edgar Demange
relation country of citizenship
action find
entity Alejandra Castillo
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Edgar Demange', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Alejandra Castillo', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Edgar_Demange property:country_of_citizenship ?r } UNION { resource:Alejandra_Castillo property:place_of_birth ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q298
SYSTEM
France, Chile
Q142 Q298
OR((Q3047445,P27,c(Q15617994)), (Q20051095,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q3047445
relation P27
action find
entity Q20051095
relation P19
type Q15617994
Edgar Demange belong to [ANSWERS]
{'OR': [['Q3047445', 'P27', {'concept': 'Q15617994'}], ['Q20051095', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q3047445 property:P27 ?r } UNION { resource:Q20051095 property:P19 ?r } } . ?r rdf:type ontology:Q15617994 }
France Chile
Edgar Demange belong to France and Chile
France Chile
action filter_type
action union
action find
entity Edgar Demange
relation country of citizenship
action find
entity Alejandra Castillo
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Edgar Demange', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Alejandra Castillo', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Edgar_Demange property:country_of_citizenship ?r } UNION { resource:Alejandra_Castillo property:place_of_birth ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with min number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?d ) { SELECT DISTINCT ?v ( COUNT ( ?m ) AS ?c ) WHERE { ?v property:P530 ?m . ?v rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?v } } . { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?l ) WHERE { ?u rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 . ?u property:P530 ?h } GROUP BY ?u } . FILTER ( ?l = ?d ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?d ) { SELECT DISTINCT ?v ( COUNT ( ?m ) AS ?c ) WHERE { ?v property:diplomatic_relation ?m . ?v rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } } . { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?l ) WHERE { ?u rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u property:diplomatic_relation ?h } GROUP BY ?u } . FILTER ( ?l = ?d ) }
[]
political territorial entity designation for an administrative territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have a diplomatic relationship with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?d ) { SELECT DISTINCT ?v ( COUNT ( ?m ) AS ?c ) WHERE { ?v property:P530 ?m . ?v rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?v } } . { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?l ) WHERE { ?u rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 . ?u property:P530 ?h } GROUP BY ?u } . FILTER ( ?l = ?d ) }
Solomon Islands Papua New Guinea
Solomon Islands and Papua New Guinea have a diplomatic relationship with min number of administrative territories
Solomon Islands Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?d ) { SELECT DISTINCT ?v ( COUNT ( ?m ) AS ?c ) WHERE { ?v property:diplomatic_relation ?m . ?v rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } } . { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?l ) WHERE { ?u rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u property:diplomatic_relation ?h } GROUP BY ?u } . FILTER ( ?l = ?d ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q27332288 Q3047445
P27 P17
Q15617994
USER
Which administrative territories are Edgar Demange an inhabitant of or are Giessereistrasse located in ?
OR((Q3047445,P27,c(Q15617994)), (Q27332288,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3047445
relation P27
action find
entity Q27332288
relation P17
type Q15617994
{'OR': [['Q3047445', 'P27', {'concept': 'Q15617994'}], ['Q27332288', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q3047445 property:P27 ?l } UNION { resource:Q27332288 property:P17 ?l } } . ?l rdf:type ontology:Q15617994 }
Giessereistrasse Edgar Demange
action filter_type
action union
action find
entity Edgar Demange
relation country of citizenship
action find
entity Giessereistrasse
relation country
type designation for an administrative territorial entity
{'OR': [['Edgar Demange', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Giessereistrasse', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Edgar_Demange property:country_of_citizenship ?l } UNION { resource:Giessereistrasse property:country ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q39
SYSTEM
France, Switzerland
Q142 Q39
OR((Q3047445,P27,c(Q15617994)), (Q27332288,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3047445
relation P27
action find
entity Q27332288
relation P17
type Q15617994
[ANSWERS] are Edgar Demange an inhabitant of or are Giessereistrasse located in
{'OR': [['Q3047445', 'P27', {'concept': 'Q15617994'}], ['Q27332288', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q3047445 property:P27 ?l } UNION { resource:Q27332288 property:P17 ?l } } . ?l rdf:type ontology:Q15617994 }
France Switzerland
France and Switzerland are Edgar Demange an inhabitant of or are Giessereistrasse located in
France Switzerland
action filter_type
action union
action find
entity Edgar Demange
relation country of citizenship
action find
entity Giessereistrasse
relation country
type designation for an administrative territorial entity
{'OR': [['Edgar Demange', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Giessereistrasse', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Edgar_Demange property:country_of_citizenship ?l } UNION { resource:Giessereistrasse property:country ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q664
P530
Q15617994 Q1048835
USER
How many political territories have ambassadorial relations with lesser number of administrative territories than New Zealand ?
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?j ) AS ?z ) WHERE { ?m property:P530 ?j . ?m rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Q664 property:P530 ?x . ?x rdf:type ontology:Q1048835 } } . FILTER ( ?z < ?i ) }
New Zealand
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 New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?j ) AS ?z ) WHERE { ?m property:diplomatic_relation ?j . ?m rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:New_Zealand property:diplomatic_relation ?x . ?x rdf:type ontology:political_territorial_entity } } . FILTER ( ?z < ?i ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
7
Q1000 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?j ) AS ?z ) WHERE { ?m property:P530 ?j . ?m rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Q664 property:P530 ?x . ?x rdf:type ontology:Q1048835 } } . FILTER ( ?z < ?i ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
7
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 New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?j ) AS ?z ) WHERE { ?m property:diplomatic_relation ?j . ?m rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:New_Zealand property:diplomatic_relation ?x . ?x rdf:type ontology:political_territorial_entity } } . FILTER ( ?z < ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q766
P530
Q15617994 Q1048835
USER
And how about Jamaica?
(c(Q1048835),P530,c(Q15617994))
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': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?z ) WHERE { ?k property:P530 ?c . ?k rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { resource:Q766 property:P530 ?l . ?l rdf:type ontology:Q1048835 } } . FILTER ( ?z < ?e ) }
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': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?z ) WHERE { ?k property:diplomatic_relation ?c . ?k rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { resource:Jamaica property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity } } . FILTER ( ?z < ?e ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
6
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994))
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': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?z ) WHERE { ?k property:P530 ?c . ?k rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { resource:Q766 property:P530 ?l . ?l rdf:type ontology:Q1048835 } } . FILTER ( ?z < ?e ) }
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': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?z ) WHERE { ?k property:diplomatic_relation ?c . ?k rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { resource:Jamaica property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity } } . FILTER ( ?z < ?e ) }
[]