Simple Question (Direct)
Simple Question
Q16003939
P27
Q1048835
USER
Which political territory does Jack Williamson belong to ?
(Q16003939,P27,c(Q1048835))
action filter_type
action find
entity Q16003939
relation P27
type Q1048835
['Q16003939', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { resource:Q16003939 property:P27 ?z . ?z rdf:type ontology:Q1048835 }
Jack Williamson
action filter_type
action find
entity Jack Williamson
relation country of citizenship
type political territorial entity
['Jack Williamson', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Jack_Williamson property:country_of_citizenship ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
(Q16003939,P27,c(Q1048835))
action filter_type
action find
entity Q16003939
relation P27
type Q1048835
Jack Williamson belongs to [ANSWER]
['Q16003939', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { resource:Q16003939 property:P27 ?z . ?z rdf:type ontology:Q1048835 }
Australia
Jack Williamson belongs to Australia
Australia
action filter_type
action find
entity Jack Williamson
relation country of citizenship
type political territorial entity
['Jack Williamson', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Jack_Williamson property:country_of_citizenship ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16003939
P106
Q12737077
USER
What do Jack Williamson do for a living ?
(Q16003939,P106,c(Q12737077))
action filter_type
action find
entity Q16003939
relation P106
type Q12737077
['Q16003939', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q16003939 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
Jack Williamson
action filter_type
action find
entity Jack Williamson
relation occupation
type occupation
['Jack Williamson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Jack_Williamson property:occupation ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q13414980 Q937857
SYSTEM
Australian-rules footballer, association football player
Q13414980 Q937857
(Q16003939,P106,c(Q12737077))
action filter_type
action find
entity Q16003939
relation P106
type Q12737077
[ANSWERS] Jack Williamson do for a living
['Q16003939', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q16003939 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
Australian-rules footballer association football player
Australian-rules footballer and association football player Jack Williamson do for a living
Australian-rules footballer association football player
action filter_type
action find
entity Jack Williamson
relation occupation
type occupation
['Jack Williamson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Jack_Williamson property:occupation ?r . ?r rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q937857
P425
Q349
USER
Who has that one as the associated field of occupation ?
(Q937857,P425,c(Q349))
action filter_type
action find
entity Q937857
relation P425
type Q349
['Q937857', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { resource:Q937857 property:P425 ?g . ?g rdf:type ontology:Q349 }
association football player
action filter_type
action find
entity association football player
relation field of this occupation
type sport
['association football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { resource:association_football_player property:field_of_this_occupation ?g . ?g rdf:type ontology:sport }
[]
sport
Clarification for simple ques.
Q937857
SYSTEM
Did you mean association football player ?
Q13414980 Q937857
(Q13414980,P425,c(Q349)) (Q937857,P425,c(Q349))
[ANSWER]
['Q13414980', 'P425', {'concept': 'Q349'}] ['Q937857', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { resource:Q937857 property:P425 ?g . ?g rdf:type ontology:Q349 }
Australian-rules footballer association football player
Did you mean association football player ?
association football player
['Australian-rules footballer', 'field of this occupation', {'concept': 'sport'}] ['association football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { resource:association_football_player property:field_of_this_occupation ?g . ?g rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
USER
Yes
(Q937857,P425,c(Q349))
['Q937857', 'P425', {'concept': 'Q349'}]
['association football player', 'field of this occupation', {'concept': 'sport'}]
[]
Q2736
SYSTEM
association football
Q2736
(Q937857,P425,c(Q349))
action filter_type
action find
entity Q937857
relation P425
type Q349
[ANSWER] has that one as the associated field of occupation
['Q937857', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { resource:Q937857 property:P425 ?g . ?g rdf:type ontology:Q349 }
association football
Association football has that one as the associated field of occupation
association football
action filter_type
action find
entity association football player
relation field of this occupation
type sport
['association football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { resource:association_football_player property:field_of_this_occupation ?g . ?g rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P495
Q1496967
USER
Which territory is the country of origin of that sport ?
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q1496967 . resource:Q2736 property:P495 ?h }
association football
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:territorial_entity . resource:association_football property:country_of_origin ?h }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
[ANSWER] is the country of origin of that sport
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q1496967 . resource:Q2736 property:P495 ?h }
England
England is the country of origin of that sport
England
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:territorial_entity . resource:association_football property:country_of_origin ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21
P36
Q56061
USER
Which administrative territory is called the capital of that territory ?
(Q21,P36,c(Q56061))
action filter_type
action find
entity Q21
relation P36
type Q56061
['Q21', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q21 property:P36 ?s . ?s rdf:type ontology:Q56061 }
England
action filter_type
action find
entity England
relation capital
type administrative territorial entity
['England', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:England property:capital ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q21,P36,c(Q56061))
action filter_type
action find
entity Q21
relation P36
type Q56061
[ANSWER] is called the capital of that territory
['Q21', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q21 property:P36 ?s . ?s rdf:type ontology:Q56061 }
London
London is called the capital of that territory
London
action filter_type
action find
entity England
relation capital
type administrative territorial entity
['England', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:England property:capital ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5056033
Q56061
USER
And how about Fărcașa?
(Q5056033,P36,c(Q56061))
action filter_type
action find
entity Q5056033
relation P36
type Q56061
['Q5056033', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q5056033 property:P36 ?c . ?c rdf:type ontology:Q56061 }
Fărcașa
action filter_type
action find
entity Fărcașa
relation capital
type administrative territorial entity
['Fărcașa', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Fărcașa property:capital ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q996446
SYSTEM
Fărcașa
Q996446
(Q5056033,P36,c(Q56061))
action filter_type
action find
entity Q5056033
relation P36
type Q56061
[ANSWER]
['Q5056033', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q5056033 property:P36 ?c . ?c rdf:type ontology:Q56061 }
Fărcașa
Fărcașa
action filter_type
action find
entity Fărcașa
relation capital
type administrative territorial entity
['Fărcașa', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Fărcașa property:capital ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P706
Q2221906 Q1267889 Q1048835
USER
Which political territories are located in min number of geographic locations and waterways ?
(c(Q1048835),P706,c(Q2221906)|c(Q1267889))
action argmin
action union
action find_tuple_counts
relation P706
type Q1048835
type Q2221906
action find_tuple_counts
relation P706
type Q1048835
type Q1267889
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q2221906'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?i ) { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?q ) WHERE { { ?c property:P706 ?f . ?c rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q2221906 } UNION { ?c property:P706 ?f . ?c rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q1267889 } } GROUP BY ?c } } . { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?e ) WHERE { ?p rdf:type ?u . VALUES ( ?u ) { ( ontology:Q2221906 ) ( ontology:Q1267889 ) } } GROUP BY ?g } . FILTER ( ?e = ?i ) }
action argmin
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type geographic location
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type waterway
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'geographic location'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?i ) { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?q ) WHERE { { ?c property:located_on_terrain_feature ?f . ?c rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:geographic_location } UNION { ?c property:located_on_terrain_feature ?f . ?c rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:waterway } } GROUP BY ?c } } . { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?e ) WHERE { ?p rdf:type ?u . VALUES ( ?u ) { ( ontology:geographic_location ) ( ontology:waterway ) } } GROUP BY ?g } . FILTER ( ?e = ?i ) }
[]
geographic location waterway political territorial entity
Q691 Q769 Q9676
SYSTEM
Papua New Guinea, Grenada, Isle of Man
Q927498 Q6661154 Q1747689 Q983465 Q943922 Q983461 Q753702 Q950889 Q385923 Q49567 Q52626 Q847324 Q847321 Q850989 Q983467 Q743716 Q734805 Q555140 Q983463 Q13737 Q493017 Q950940 Q669078 Q851224 Q950951 Q843868 Q945653 Q37362 Q715970 Q595424 Q7198529 Q832991 Q13751 Q13752 Q975679 Q601112 Q984496 Q743741 Q988714 Q596885 Q941533 Q783498 Q692920 Q850939 Q988702 Q2451327 Q925773 Q851011 Q1823 Q13844 Q611123 Q233337 Q987394 Q691 Q899884 Q837121 Q950901 Q837125 Q847317 Q983633 Q491786 Q983631 Q3724 Q983635 Q8583 Q652988 Q832967 Q185409 Q769 Q9676 Q984485 Q168159 Q983625 Q983628 Q8593 Q656449 Q988688 Q213361 Q984493 Q984491 Q984499 Q3396832 Q9337 Q988696 Q943948 Q697126 Q616408 Q610838 Q920971
(c(Q1048835),P706,c(Q2221906)|c(Q1267889))
action argmin
action union
action find_tuple_counts
relation P706
type Q1048835
type Q2221906
action find_tuple_counts
relation P706
type Q1048835
type Q1267889
[ANSWERS] are located in min number of geographic locations and waterways
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q2221906'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?i ) { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?q ) WHERE { { ?c property:P706 ?f . ?c rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q2221906 } UNION { ?c property:P706 ?f . ?c rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q1267889 } } GROUP BY ?c } } . { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?e ) WHERE { ?p rdf:type ?u . VALUES ( ?u ) { ( ontology:Q2221906 ) ( ontology:Q1267889 ) } } GROUP BY ?g } . FILTER ( ?e = ?i ) }
Llucmajor Llanddeusant, Carmarthenshire Ancient Rome Santa Eulària des Riu Sineu Ferreries East New Britain Consell Alcúdia Manacor Formentera Alaior Esporles Campanet Montuïri Campos Sant Antoni de Portmany Capileira Sant Llorenç des Cardassar Basilan Andratx Marratxí Maria de la Salut Costitx Escorca Wrexham County Borough Es Mercadal Akrotiri and Dhekelia Artà Muro, Majorca Pistyll Sóller Biliran Bohol Vilafranca de Bonany Pollença Selva Felanitx Lloret de Vistalegre Blaenau Gwent County Borough Es Castell Ses Salines Sant Joan Alaró Estellencs Sé Porreres Algaida Aceh Leyte Petra, Majorca Deià Sencelles Papua New Guinea Ciutadella de Menorca Binissalem Fornalutx Bunyola Lloseta Santanyí Calvià Santa Eugènia West Java Province Sant Josep de sa Talaia Vulkaneifel Búger Valldemossa Llubí Grenada Isle of Man Es Migjorn Gran Anglesey Puigpunyent Sant Joan de Labritja Mayen-Koblenz Ariany, Majorca Inca Pembrokeshire Sa Pobla Santa Margalida Sant Lluís Tudweiliog Flemish Region Mancor de la Vall Santa Maria del Camí Bridgend County Borough Banyalbufar Son Servera Capdepera
Papua New Guinea, Grenada and Isle of Man are located in min number of geographic locations and waterways
Papua New Guinea Grenada Isle of Man
action argmin
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type geographic location
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type waterway
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'geographic location'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?i ) { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?q ) WHERE { { ?c property:located_on_terrain_feature ?f . ?c rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:geographic_location } UNION { ?c property:located_on_terrain_feature ?f . ?c rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:waterway } } GROUP BY ?c } } . { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?e ) WHERE { ?p rdf:type ?u . VALUES ( ?u ) { ( ontology:geographic_location ) ( ontology:waterway ) } } GROUP BY ?g } . FILTER ( ?e = ?i ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P108
Q502895
USER
Who works for United Kingdom ?
(c(Q502895),P108,Q145)
action filter_type
action find_reverse
entity Q145
relation P108
type Q502895
[{'concept': 'Q502895'}, 'P108', 'Q145']
SELECT DISTINCT ?g WHERE { ?g property:P108 resource:Q145 . ?g rdf:type ontology:Q502895 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'United Kingdom']
SELECT DISTINCT ?g WHERE { ?g property:employer resource:United_Kingdom . ?g rdf:type ontology:common_name }
[]
common name
Q131733 Q2261240 Q110869
SYSTEM
Henry Cavendish, William Hume-Rothery, William Lassell
Q131733 Q2261240 Q110869
(c(Q502895),P108,Q145)
action filter_type
action find_reverse
entity Q145
relation P108
type Q502895
[ANSWERS] work for United Kingdom
[{'concept': 'Q502895'}, 'P108', 'Q145']
SELECT DISTINCT ?g WHERE { ?g property:P108 resource:Q145 . ?g rdf:type ontology:Q502895 }
Henry Cavendish William Hume-Rothery William Lassell
Henry Cavendish, William Hume-Rothery and William Lassell work for United Kingdom
Henry Cavendish William Hume-Rothery William Lassell
action filter_type
action find_reverse
entity United Kingdom
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'United Kingdom']
SELECT DISTINCT ?g WHERE { ?g property:employer resource:United_Kingdom . ?g rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q131733 Q2261240 Q110869
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Henry Cavendish, William Hume-Rothery and William Lassell ?
(Q131733,P27,c(Q15617994)) (Q2261240,P27,c(Q15617994)) (Q110869,P27,c(Q15617994))
action union
action filter_type
action find
entity Q131733
relation P27
type Q15617994
action filter_type
action find
entity Q2261240
relation P27
type Q15617994
action filter_type
action find
entity Q110869
relation P27
type Q15617994
['Q131733', 'P27', {'concept': 'Q15617994'}] ['Q2261240', 'P27', {'concept': 'Q15617994'}] ['Q110869', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { resource:Q131733 property:P27 ?s . ?s rdf:type ontology:Q15617994 } UNION { resource:Q2261240 property:P27 ?s . ?s rdf:type ontology:Q15617994 } }
Henry Cavendish William Hume-Rothery William Lassell
action union
action filter_type
action find
entity Henry Cavendish
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity William Hume-Rothery
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity William Lassell
relation country of citizenship
type designation for an administrative territorial entity
['Henry Cavendish', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['William Hume-Rothery', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['William Lassell', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { resource:Henry_Cavendish property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:William_Hume-Rothery property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q145 Q145 Q145
SYSTEM
United Kingdom
Q145 Q145 Q145
(Q131733,P27,c(Q15617994)) (Q2261240,P27,c(Q15617994)) (Q110869,P27,c(Q15617994))
action union
action filter_type
action find
entity Q131733
relation P27
type Q15617994
action filter_type
action find
entity Q2261240
relation P27
type Q15617994
action filter_type
action find
entity Q110869
relation P27
type Q15617994
[ANSWER], [ANSWER] and [ANSWER] are the countries of citizenship of Henry Cavendish, William Hume-Rothery and William Lassell
['Q131733', 'P27', {'concept': 'Q15617994'}] ['Q2261240', 'P27', {'concept': 'Q15617994'}] ['Q110869', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { resource:Q131733 property:P27 ?s . ?s rdf:type ontology:Q15617994 } UNION { resource:Q2261240 property:P27 ?s . ?s rdf:type ontology:Q15617994 } }
United Kingdom United Kingdom United Kingdom
United Kingdom, United Kingdom and United Kingdom are the countries of citizenship of Henry Cavendish, William Hume-Rothery and William Lassell
United Kingdom United Kingdom United Kingdom
action union
action filter_type
action find
entity Henry Cavendish
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity William Hume-Rothery
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity William Lassell
relation country of citizenship
type designation for an administrative territorial entity
['Henry Cavendish', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['William Hume-Rothery', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['William Lassell', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { resource:Henry_Cavendish property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:William_Hume-Rothery property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q408
P38
Q8142
USER
What is the currency of Australia ?
(Q408,P38,c(Q8142))
action filter_type
action find
entity Q408
relation P38
type Q8142
['Q408', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q8142 . resource:Q408 property:P38 ?e }
Australia
action filter_type
action find
entity Australia
relation currency
type currency
['Australia', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:currency . resource:Australia property:currency ?e }
[]
currency
Q25224
SYSTEM
pound sterling
Q25224
(Q408,P38,c(Q8142))
action filter_type
action find
entity Q408
relation P38
type Q8142
The currency of Australia is the [ANSWER]
['Q408', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q8142 . resource:Q408 property:P38 ?e }
pound sterling
The currency of Australia is the pound sterling
pound sterling
action filter_type
action find
entity Australia
relation currency
type currency
['Australia', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:currency . resource:Australia property:currency ?e }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P38
Q8142 Q2221906
USER
How many currencies are the currencies of lesser number of geographic locations than that currency ?
(c(Q2221906),P38,c(Q8142))
action count
action less
action find_tuple_counts
relation P38
type Q8142
type Q2221906
action count
action filter_type
action find
entity Q25224
relation P38
type Q8142
[{'concept': 'Q2221906'}, 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { resource:Q25224 property:P38 ?a . ?a rdf:type ontology:Q8142 } } . FILTER ( ?u < ?f ) . { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?u ) WHERE { ?e property:P38 ?z . ?e rdf:type ontology:Q8142 . ?z rdf:type ontology:Q2221906 } GROUP BY ?e } }
action count
action less
action find_tuple_counts
relation currency
type currency
type geographic location
action count
action filter_type
action find
entity pound sterling
relation currency
type currency
[{'concept': 'geographic location'}, 'currency', {'concept': 'currency'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { resource:pound_sterling property:currency ?a . ?a rdf:type ontology:currency } } . FILTER ( ?u < ?f ) . { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?u ) WHERE { ?e property:currency ?z . ?e rdf:type ontology:currency . ?z rdf:type ontology:geographic_location } GROUP BY ?e } }
[]
currency geographic location
SYSTEM
0
(c(Q2221906),P38,c(Q8142))
action count
action less
action find_tuple_counts
relation P38
type Q8142
type Q2221906
action count
action filter_type
action find
entity Q25224
relation P38
type Q8142
[ANSWER]
[{'concept': 'Q2221906'}, 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { resource:Q25224 property:P38 ?a . ?a rdf:type ontology:Q8142 } } . FILTER ( ?u < ?f ) . { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?u ) WHERE { ?e property:P38 ?z . ?e rdf:type ontology:Q8142 . ?z rdf:type ontology:Q2221906 } GROUP BY ?e } }
0
action count
action less
action find_tuple_counts
relation currency
type currency
type geographic location
action count
action filter_type
action find
entity pound sterling
relation currency
type currency
[{'concept': 'geographic location'}, 'currency', {'concept': 'currency'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { resource:pound_sterling property:currency ?a . ?a rdf:type ontology:currency } } . FILTER ( ?u < ?f ) . { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?u ) WHERE { ?e property:currency ?z . ?e rdf:type ontology:currency . ?z rdf:type ontology:geographic_location } GROUP BY ?e } }
[]