Simple Question (Direct)
Simple Question
Q1005245
P40
Q502895
USER
Who are the children of Shimazu Tadayoshi ?
(Q1005245,P40,c(Q502895))
action filter_type
action find
entity Q1005245
relation P40
type Q502895
['Q1005245', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q1005245 property:P40 ?q }
Shimazu Tadayoshi
action filter_type
action find
entity Shimazu Tadayoshi
relation child
type common name
['Shimazu Tadayoshi', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Shimazu_Tadayoshi property:child ?q }
[]
common name
Q11642999 Q7496849 Q11619938
SYSTEM
Shimazu Chikako, Shimazu Tadashige, Shimazu Hisako
Q11642999 Q7496849 Q11162856 Q11619938
(Q1005245,P40,c(Q502895))
action filter_type
action find
entity Q1005245
relation P40
type Q502895
The children of Shimazu Tadayoshi are called [ANSWERS]
['Q1005245', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q1005245 property:P40 ?q }
Shimazu Chikako Shimazu Tadashige Tadahiro Shimazu Shimazu Hisako
The children of Shimazu Tadayoshi are called Shimazu Chikako, Shimazu Tadashige and Shimazu Hisako
Shimazu Chikako Shimazu Tadashige Shimazu Hisako
action filter_type
action find
entity Shimazu Tadayoshi
relation child
type common name
['Shimazu Tadayoshi', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Shimazu_Tadayoshi property:child ?q }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1005245
P7
Q502895
USER
Who are Shimazu Tadayoshi a sibling of ?
(Q1005245,P7,c(Q502895))
action filter_type
action find
entity Q1005245
relation P7
type Q502895
['Q1005245', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q1005245 property:P7 ?s . ?s rdf:type ontology:Q502895 }
Shimazu Tadayoshi
action filter_type
action find
entity Shimazu Tadayoshi
relation brother
type common name
['Shimazu Tadayoshi', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Shimazu_Tadayoshi property:brother ?s . ?s rdf:type ontology:common_name }
[]
common name
Q11162456 Q11246072 Q11162920
SYSTEM
Shimazu Uzuhiko, Shimazu Hisaharu, Shimazu Tadakata
Q11162456 Q11246072 Q11162920 Q11162929
(Q1005245,P7,c(Q502895))
action filter_type
action find
entity Q1005245
relation P7
type Q502895
Shimazu Tadayoshi a sibling of are [ANSWERS]
['Q1005245', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q1005245 property:P7 ?s . ?s rdf:type ontology:Q502895 }
Shimazu Uzuhiko Shimazu Hisaharu Shimazu Tadakata Shimazu Tadanari
Shimazu Tadayoshi a sibling of are Shimazu Uzuhiko, Shimazu Hisaharu and Shimazu Tadakata
Shimazu Uzuhiko Shimazu Hisaharu Shimazu Tadakata
action filter_type
action find
entity Shimazu Tadayoshi
relation brother
type common name
['Shimazu Tadayoshi', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Shimazu_Tadayoshi property:brother ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11162456
P22
Q502895
USER
Which person was the father of Shimazu Uzuhiko ?
(Q11162456,P22,c(Q502895))
action filter_type
action find
entity Q11162456
relation P22
type Q502895
['Q11162456', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q11162456 property:P22 ?b . ?b rdf:type ontology:Q502895 }
Shimazu Uzuhiko
action filter_type
action find
entity Shimazu Uzuhiko
relation father
type common name
['Shimazu Uzuhiko', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Shimazu_Uzuhiko property:father ?b . ?b rdf:type ontology:common_name }
[]
common name
Q656135
SYSTEM
Shimazu Hisamitsu
Q656135
(Q11162456,P22,c(Q502895))
action filter_type
action find
entity Q11162456
relation P22
type Q502895
[ANSWER] was the father of Shimazu Uzuhiko
['Q11162456', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q11162456 property:P22 ?b . ?b rdf:type ontology:Q502895 }
Shimazu Hisamitsu
Shimazu Hisamitsu was the father of Shimazu Uzuhiko
Shimazu Hisamitsu
action filter_type
action find
entity Shimazu Uzuhiko
relation father
type common name
['Shimazu Uzuhiko', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Shimazu_Uzuhiko property:father ?b . ?b rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11162456
P21
Q290
USER
What is the sex of Shimazu Uzuhiko ?
(Q11162456,P21,c(Q290))
action filter_type
action find
entity Q11162456
relation P21
type Q290
['Q11162456', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q11162456 property:P21 ?v . ?v rdf:type ontology:Q290 }
Shimazu Uzuhiko
action filter_type
action find
entity Shimazu Uzuhiko
relation gender
type sex
['Shimazu Uzuhiko', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Shimazu_Uzuhiko property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q11162456,P21,c(Q290))
action filter_type
action find
entity Q11162456
relation P21
type Q290
The sex of Shimazu Uzuhiko is the [ANSWER]
['Q11162456', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q11162456 property:P21 ?v . ?v rdf:type ontology:Q290 }
male
The sex of Shimazu Uzuhiko is the male
male
action filter_type
action find
entity Shimazu Uzuhiko
relation gender
type sex
['Shimazu Uzuhiko', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Shimazu_Uzuhiko property:gender ?v . ?v rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5796422
Q290
USER
And also tell me about Tage Hedqvist?
(Q5796422,P21,c(Q290))
action filter_type
action find
entity Q5796422
relation P21
type Q290
['Q5796422', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q5796422 property:P21 ?r . ?r rdf:type ontology:Q290 }
Tage Hedqvist
action filter_type
action find
entity Tage Hedqvist
relation gender
type sex
['Tage Hedqvist', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Tage_Hedqvist property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5796422,P21,c(Q290))
action filter_type
action find
entity Q5796422
relation P21
type Q290
[ANSWER]
['Q5796422', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q5796422 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Tage Hedqvist
relation gender
type sex
['Tage Hedqvist', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Tage_Hedqvist property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5796422
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q5796422
relation P27
type Q15617994
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q5796422 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Tage Hedqvist
action filter_type
action find
entity Tage Hedqvist
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Tage_Hedqvist property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q5796422
relation P27
type Q15617994
[ANSWER] is the native country of that person
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q5796422 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Sweden
Sweden is the native country of that person
Sweden
action filter_type
action find
entity Tage Hedqvist
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Tage_Hedqvist property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5796422
P106
Q12737077
USER
Which occupation is the profession of that person ?
(Q34,P106,c(Q12737077))
action filter_type
action find
entity Q5796422
relation P106
type Q12737077
['Q34', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q5796422 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
Tage Hedqvist
action filter_type
action find
entity Tage Hedqvist
relation occupation
type occupation
['Sweden', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Tage_Hedqvist property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q1028181
SYSTEM
painter
Q1028181
(Q34,P106,c(Q12737077))
action filter_type
action find
entity Q5796422
relation P106
type Q12737077
The [ANSWER] is the profession of that person
['Q34', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q5796422 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
painter
The painter is the profession of that person
painter
action filter_type
action find
entity Tage Hedqvist
relation occupation
type occupation
['Sweden', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Tage_Hedqvist property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q242044
P841
Q186081 Q573 Q502895
USER
How many people have less number of time intervals and days as their principal feast day than Catherine Labouré ?
(c(Q502895),P841,c(Q186081)|c(Q573))
action count
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q186081
action find_tuple_counts
relation P841
type Q502895
type Q573
action count
action filter_multi_types
action find
entity Q242044
relation P841
type Q186081
type Q573
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q186081'}, {'concept': 'Q573'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { VALUES ( ?e ) { ( ontology:Q186081 ) ( ontology:Q573 ) } . ?o rdf:type ?e } . resource:Q242044 property:P841 ?o } } . FILTER ( ?l < ?t ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?f WHERE { { ?f rdf:type ontology:Q502895 . ?b rdf:type ontology:Q186081 . ?f property:P841 ?b } UNION { ?f property:P841 ?b . ?f rdf:type ontology:Q502895 . ?b rdf:type ontology:Q573 } } GROUP BY ?f } }
Catherine Labouré
action count
action less
action union
action find_tuple_counts
relation feast day
type common name
type time interval
action find_tuple_counts
relation feast day
type common name
type day
action count
action filter_multi_types
action find
entity Catherine Labouré
relation feast day
type time interval
type day
[{'concept': 'common name'}, 'feast day', [{'concept': 'time interval'}, {'concept': 'day'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { VALUES ( ?e ) { ( ontology:time_interval ) ( ontology:day ) } . ?o rdf:type ?e } . resource:Catherine_Labouré property:feast_day ?o } } . FILTER ( ?l < ?t ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?f WHERE { { ?f rdf:type ontology:common_name . ?b rdf:type ontology:time_interval . ?f property:feast_day ?b } UNION { ?f property:feast_day ?b . ?f rdf:type ontology:common_name . ?b rdf:type ontology:day } } GROUP BY ?f } }
[]
time interval day common name
SYSTEM
11
Q384117 Q365797 Q3483257 Q679784 Q3483161 Q3483259 Q3483263 Q167477 Q3047912 Q269889 Q2701365
(c(Q502895),P841,c(Q186081)|c(Q573))
action count
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q186081
action find_tuple_counts
relation P841
type Q502895
type Q573
action count
action filter_multi_types
action find
entity Q242044
relation P841
type Q186081
type Q573
[ANSWER]
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q186081'}, {'concept': 'Q573'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { VALUES ( ?e ) { ( ontology:Q186081 ) ( ontology:Q573 ) } . ?o rdf:type ?e } . resource:Q242044 property:P841 ?o } } . FILTER ( ?l < ?t ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?f WHERE { { ?f rdf:type ontology:Q502895 . ?b rdf:type ontology:Q186081 . ?f property:P841 ?b } UNION { ?f property:P841 ?b . ?f rdf:type ontology:Q502895 . ?b rdf:type ontology:Q573 } } GROUP BY ?f } }
Aignan of Orleans Ahmad al-Tijani Sidi M'hamed Bou Qobrine Pier Giorgio Frassati Sidi Abder Rahman El Thaelebi Sidi M'hand Oumalek Sidi Mansour Anthony of Padua Seraphina Sforza Joanna, wife of Chuza Thomas Percy, 7th Earl of Northumberland
11
action count
action less
action union
action find_tuple_counts
relation feast day
type common name
type time interval
action find_tuple_counts
relation feast day
type common name
type day
action count
action filter_multi_types
action find
entity Catherine Labouré
relation feast day
type time interval
type day
[{'concept': 'common name'}, 'feast day', [{'concept': 'time interval'}, {'concept': 'day'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { VALUES ( ?e ) { ( ontology:time_interval ) ( ontology:day ) } . ?o rdf:type ?e } . resource:Catherine_Labouré property:feast_day ?o } } . FILTER ( ?l < ?t ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?f WHERE { { ?f rdf:type ontology:common_name . ?b rdf:type ontology:time_interval . ?f property:feast_day ?b } UNION { ?f property:feast_day ?b . ?f rdf:type ontology:common_name . ?b rdf:type ontology:day } } GROUP BY ?f } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q989
P841
Q186081 Q573 Q502895
USER
And how about John Paul II?
(c(Q502895),P841,c(Q186081)|c(Q573))
action count
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q186081
action find_tuple_counts
relation P841
type Q502895
type Q573
action count
action filter_multi_types
action find
entity Q989
relation P841
type Q186081
type Q573
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q186081'}, {'concept': 'Q573'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { { ?t rdf:type ontology:Q186081 } UNION { ?t rdf:type ontology:Q573 } } . resource:Q989 property:P841 ?t } } . FILTER ( ?b < ?r ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) ?k WHERE { { ?k property:P841 ?j . ?k rdf:type ontology:Q502895 . ?j rdf:type ontology:Q186081 } UNION { ?k property:P841 ?j . ?k rdf:type ontology:Q502895 . ?j rdf:type ontology:Q573 } } GROUP BY ?k } }
John Paul II
action count
action less
action union
action find_tuple_counts
relation feast day
type common name
type time interval
action find_tuple_counts
relation feast day
type common name
type day
action count
action filter_multi_types
action find
entity John Paul II
relation feast day
type time interval
type day
[{'concept': 'common name'}, 'feast day', [{'concept': 'time interval'}, {'concept': 'day'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { { ?t rdf:type ontology:time_interval } UNION { ?t rdf:type ontology:day } } . resource:John_Paul_II property:feast_day ?t } } . FILTER ( ?b < ?r ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) ?k WHERE { { ?k property:feast_day ?j . ?k rdf:type ontology:common_name . ?j rdf:type ontology:time_interval } UNION { ?k property:feast_day ?j . ?k rdf:type ontology:common_name . ?j rdf:type ontology:day } } GROUP BY ?k } }
[]
time interval day common name
SYSTEM
11
Q384117 Q365797 Q3483257 Q679784 Q3483161 Q3483259 Q3483263 Q167477 Q3047912 Q269889 Q2701365
(c(Q502895),P841,c(Q186081)|c(Q573))
action count
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q186081
action find_tuple_counts
relation P841
type Q502895
type Q573
action count
action filter_multi_types
action find
entity Q989
relation P841
type Q186081
type Q573
[ANSWER]
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q186081'}, {'concept': 'Q573'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { { ?t rdf:type ontology:Q186081 } UNION { ?t rdf:type ontology:Q573 } } . resource:Q989 property:P841 ?t } } . FILTER ( ?b < ?r ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) ?k WHERE { { ?k property:P841 ?j . ?k rdf:type ontology:Q502895 . ?j rdf:type ontology:Q186081 } UNION { ?k property:P841 ?j . ?k rdf:type ontology:Q502895 . ?j rdf:type ontology:Q573 } } GROUP BY ?k } }
Aignan of Orleans Ahmad al-Tijani Sidi M'hamed Bou Qobrine Pier Giorgio Frassati Sidi Abder Rahman El Thaelebi Sidi M'hand Oumalek Sidi Mansour Anthony of Padua Seraphina Sforza Joanna, wife of Chuza Thomas Percy, 7th Earl of Northumberland
11
action count
action less
action union
action find_tuple_counts
relation feast day
type common name
type time interval
action find_tuple_counts
relation feast day
type common name
type day
action count
action filter_multi_types
action find
entity John Paul II
relation feast day
type time interval
type day
[{'concept': 'common name'}, 'feast day', [{'concept': 'time interval'}, {'concept': 'day'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { { ?t rdf:type ontology:time_interval } UNION { ?t rdf:type ontology:day } } . resource:John_Paul_II property:feast_day ?t } } . FILTER ( ?b < ?r ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) ?k WHERE { { ?k property:feast_day ?j . ?k rdf:type ontology:common_name . ?j rdf:type ontology:time_interval } UNION { ?k property:feast_day ?j . ?k rdf:type ontology:common_name . ?j rdf:type ontology:day } } GROUP BY ?k } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P17
Q15617994 Q20667921 Q2235308
USER
Which administrative territories do max number of french administrative divisions and ship types belong to ?
(c(Q20667921)|c(Q2235308),P17,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q20667921
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2235308
[[{'concept': 'Q20667921'}, {'concept': 'Q2235308'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { FILTER ( ?r = ?u ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) ?v WHERE { VALUES ( ?p ) { ( ontology:Q20667921 ) ( ontology:Q2235308 ) } . ?m rdf:type ?p } GROUP BY ?v } . { SELECT DISTINCT ( MAX ( ?w ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) ?s WHERE { { ?b property:P17 ?s . ?s rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q20667921 } UNION { ?b property:P17 ?s . ?s rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q2235308 } } GROUP BY ?s } } }
action argmax
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type ship type
[[{'concept': 'type of french administrative division'}, {'concept': 'ship type'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { FILTER ( ?r = ?u ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) ?v WHERE { VALUES ( ?p ) { ( ontology:type_of_french_administrative_division ) ( ontology:ship_type ) } . ?m rdf:type ?p } GROUP BY ?v } . { SELECT DISTINCT ( MAX ( ?w ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) ?s WHERE { { ?b property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:type_of_french_administrative_division } UNION { ?b property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:ship_type } } GROUP BY ?s } } }
[]
designation for an administrative territorial entity type of french administrative division ship type
Q142
SYSTEM
France
Q142
(c(Q20667921)|c(Q2235308),P17,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q20667921
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2235308
[ANSWER] max number of french administrative divisions and ship types belong to
[[{'concept': 'Q20667921'}, {'concept': 'Q2235308'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { FILTER ( ?r = ?u ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) ?v WHERE { VALUES ( ?p ) { ( ontology:Q20667921 ) ( ontology:Q2235308 ) } . ?m rdf:type ?p } GROUP BY ?v } . { SELECT DISTINCT ( MAX ( ?w ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) ?s WHERE { { ?b property:P17 ?s . ?s rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q20667921 } UNION { ?b property:P17 ?s . ?s rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q2235308 } } GROUP BY ?s } } }
France
France max number of french administrative divisions and ship types belong to
France
action argmax
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type ship type
[[{'concept': 'type of french administrative division'}, {'concept': 'ship type'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { FILTER ( ?r = ?u ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) ?v WHERE { VALUES ( ?p ) { ( ontology:type_of_french_administrative_division ) ( ontology:ship_type ) } . ?m rdf:type ?p } GROUP BY ?v } . { SELECT DISTINCT ( MAX ( ?w ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) ?s WHERE { { ?b property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:type_of_french_administrative_division } UNION { ?b property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:ship_type } } GROUP BY ?s } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q29
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with less number of administrative territories than Spain ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q29
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?v ) WHERE { ?c property:P530 ?s . ?c rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { resource:Q29 property:P530 ?j . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?v < ?p ) }
Spain
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Spain
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?v ) WHERE { ?c property:diplomatic_relation ?s . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { resource:Spain property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v < ?p ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q20 Q33
SYSTEM
Netherlands, Norway, Finland
Q702 Q804 Q800 Q55 Q262 Q783 Q265 Q712 Q837 Q398 Q657 Q792 Q790 Q954 Q958 Q986 Q242 Q244 Q811 Q33 Q924 Q983 Q851 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q1029 Q1028 Q786 Q224 Q221 Q229 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q878 Q774 Q817 Q810 Q1019 Q945 Q678 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q29
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with less number of administrative territories than Spain
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?v ) WHERE { ?c property:P530 ?s . ?c rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { resource:Q29 property:P530 ?j . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?v < ?p ) }
Federated States of Micronesia Panama Costa Rica Netherlands Algeria Honduras Uzbekistan Fiji Nepal Bahrain Chad El Salvador Haiti Zimbabwe South Sudan Eritrea Belize Barbados Nicaragua Finland Tanzania Equatorial Guinea Saudi Arabia Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Brunei Sudan Mauritius Malawi Iceland Oman Mozambique Morocco Dominican Republic Croatia Republic of Macedonia Cyprus Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Bolivia Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor United Arab Emirates Guatemala Kuwait Jordan Madagascar Togo Tonga New Caledonia Thailand
Netherlands, Norway and Finland have diplomatic relations with less number of administrative territories than Spain
Netherlands Norway Finland
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Spain
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?v ) WHERE { ?c property:diplomatic_relation ?s . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { resource:Spain property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v < ?p ) }
[]