Simple Question (Direct)
Simple Question
Q225970
P641
Q349
USER
Which sport did Daniel Bernhardt participate in ?
(Q225970,P641,c(Q349))
action filter_type
action find
entity Q225970
relation P641
type Q349
['Q225970', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { resource:Q225970 property:P641 ?a . ?a rdf:type ontology:Q349 }
Daniel Bernhardt
action filter_type
action find
entity Daniel Bernhardt
relation sport
type sport
['Daniel Bernhardt', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { resource:Daniel_Bernhardt property:sport ?a . ?a rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q225970,P641,c(Q349))
action filter_type
action find
entity Q225970
relation P641
type Q349
Daniel Bernhardt participated in [ANSWER]
['Q225970', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { resource:Q225970 property:P641 ?a . ?a rdf:type ontology:Q349 }
association football
Daniel Bernhardt participated in association football
association football
action filter_type
action find
entity Daniel Bernhardt
relation sport
type sport
['Daniel Bernhardt', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { resource:Daniel_Bernhardt property:sport ?a . ?a rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q225970
P21
Q290
USER
What is the sex of Daniel Bernhardt ?
(Q225970,P21,c(Q290))
action filter_type
action find
entity Q225970
relation P21
type Q290
['Q225970', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q225970 property:P21 ?l . ?l rdf:type ontology:Q290 }
Daniel Bernhardt
action filter_type
action find
entity Daniel Bernhardt
relation gender
type sex
['Daniel Bernhardt', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Daniel_Bernhardt property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q225970,P21,c(Q290))
action filter_type
action find
entity Q225970
relation P21
type Q290
The sex of Daniel Bernhardt is the [ANSWER]
['Q225970', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q225970 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
The sex of Daniel Bernhardt is the male
male
action filter_type
action find
entity Daniel Bernhardt
relation gender
type sex
['Daniel Bernhardt', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Daniel_Bernhardt property:gender ?l . ?l rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q225970
P106
Q12737077
USER
What is the job of Daniel Bernhardt ?
(Q225970,P106,c(Q12737077))
action filter_type
action find
entity Q225970
relation P106
type Q12737077
['Q225970', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q225970 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
Daniel Bernhardt
action filter_type
action find
entity Daniel Bernhardt
relation occupation
type occupation
['Daniel Bernhardt', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Daniel_Bernhardt property:occupation ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q225970,P106,c(Q12737077))
action filter_type
action find
entity Q225970
relation P106
type Q12737077
The job of Daniel Bernhardt is an [ANSWER]
['Q225970', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q225970 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
association football player
The job of Daniel Bernhardt is an association football player
association football player
action filter_type
action find
entity Daniel Bernhardt
relation occupation
type occupation
['Daniel Bernhardt', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Daniel_Bernhardt property:occupation ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q937857
P921
Q2342494
USER
Which collectables have that occupation as their principal topic ?
(c(Q2342494),P921,Q937857)
action filter_type
action find_reverse
entity Q937857
relation P921
type Q2342494
[{'concept': 'Q2342494'}, 'P921', 'Q937857']
SELECT DISTINCT ?x WHERE { ?x property:P921 resource:Q937857 . ?x rdf:type ontology:Q2342494 }
association football player
action filter_type
action find_reverse
entity association football player
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'association football player']
SELECT DISTINCT ?x WHERE { ?x property:main_subject resource:association_football_player . ?x rdf:type ontology:collectable }
[]
collectable
Q24787529 Q23730991 Q19845002
SYSTEM
The PFA footballers' who's who 2008-09, Timeless Bees: Brentford F.C. who's who 1920-2006, Citizens and minstermen : a who's who of York City FC, 1922-1997
Q24787529 Q23730991 Q19845002
(c(Q2342494),P921,Q937857)
action filter_type
action find_reverse
entity Q937857
relation P921
type Q2342494
[ANSWERS]
[{'concept': 'Q2342494'}, 'P921', 'Q937857']
SELECT DISTINCT ?x WHERE { ?x property:P921 resource:Q937857 . ?x rdf:type ontology:Q2342494 }
The PFA footballers' who's who 2008-09 Timeless Bees: Brentford F.C. who's who 1920-2006 Citizens and minstermen : a who's who of York City FC, 1922-1997
The PFA footballers' who's who 2008-09, Timeless Bees: Brentford F.C. who's who 1920-2006 and Citizens and minstermen : a who's who of York City FC, 1922-1997 have that occupation as their principal topic
The PFA footballers' who's who 2008-09 Timeless Bees: Brentford F.C. who's who 1920-2006 Citizens and minstermen : a who's who of York City FC, 1922-1997
action filter_type
action find_reverse
entity association football player
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'association football player']
SELECT DISTINCT ?x WHERE { ?x property:main_subject resource:association_football_player . ?x rdf:type ontology:collectable }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1860 Q937857
P364 P921
Q2342494
USER
Which collectables are association football player a main subject of and were originally created in English language ?
AND((c(Q2342494),P921,Q937857), (c(Q2342494),P364,Q1860))
action filter_type
action intersection
action find_reverse
entity Q937857
relation P921
action find_reverse
entity Q1860
relation P364
type Q2342494
{'AND': [[{'concept': 'Q2342494'}, 'P921', 'Q937857'], [{'concept': 'Q2342494'}, 'P364', 'Q1860']]}
SELECT DISTINCT ?x WHERE { ?x property:P921 resource:Q937857 . ?x property:P364 resource:Q1860 . ?x rdf:type ontology:Q2342494 }
English association football player
action filter_type
action intersection
action find_reverse
entity association football player
relation main subject
action find_reverse
entity English
relation original language of work
type collectable
{'AND': [[{'concept': 'collectable'}, 'main subject', 'association football player'], [{'concept': 'collectable'}, 'original language of work', 'English']]}
SELECT DISTINCT ?x WHERE { ?x property:main_subject resource:association_football_player . ?x property:original_language_of_work resource:English . ?x rdf:type ontology:collectable }
[]
collectable
Q24787529 Q19845002
SYSTEM
The PFA footballers' who's who 2008-09, Citizens and minstermen : a who's who of York City FC, 1922-1997
Q24787529 Q19845002
AND((c(Q2342494),P921,Q937857), (c(Q2342494),P364,Q1860))
action filter_type
action intersection
action find_reverse
entity Q937857
relation P921
action find_reverse
entity Q1860
relation P364
type Q2342494
[ANSWERS]
{'AND': [[{'concept': 'Q2342494'}, 'P921', 'Q937857'], [{'concept': 'Q2342494'}, 'P364', 'Q1860']]}
SELECT DISTINCT ?x WHERE { ?x property:P921 resource:Q937857 . ?x property:P364 resource:Q1860 . ?x rdf:type ontology:Q2342494 }
The PFA footballers' who's who 2008-09 Citizens and minstermen : a who's who of York City FC, 1922-1997
The PFA footballers' who's who 2008-09 and Citizens and minstermen : a who's who of York City FC, 1922-1997 are association football player a main subject of and were originally created in English language
The PFA footballers' who's who 2008-09 Citizens and minstermen : a who's who of York City FC, 1922-1997
action filter_type
action intersection
action find_reverse
entity association football player
relation main subject
action find_reverse
entity English
relation original language of work
type collectable
{'AND': [[{'concept': 'collectable'}, 'main subject', 'association football player'], [{'concept': 'collectable'}, 'original language of work', 'English']]}
SELECT DISTINCT ?x WHERE { ?x property:main_subject resource:association_football_player . ?x property:original_language_of_work resource:English . ?x rdf:type ontology:collectable }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3814807 Q225970
P27
Q1048835
USER
Which political territories are the native countriesof Daniel Bernhardt or Kevin Edwards ?
OR((Q225970,P27,c(Q1048835)), (Q3814807,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q225970
relation P27
action find
entity Q3814807
relation P27
type Q1048835
{'OR': [['Q225970', 'P27', {'concept': 'Q1048835'}], ['Q3814807', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?v ) { ( resource:Q3814807 ) ( resource:Q225970 ) } . ?v property:P27 ?g } . ?g rdf:type ontology:Q1048835 }
Kevin Edwards Daniel Bernhardt
action filter_type
action union
action find
entity Daniel Bernhardt
relation country of citizenship
action find
entity Kevin Edwards
relation country of citizenship
type political territorial entity
{'OR': [['Daniel Bernhardt', 'country of citizenship', {'concept': 'political territorial entity'}], ['Kevin Edwards', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?v ) { ( resource:Kevin_Edwards ) ( resource:Daniel_Bernhardt ) } . ?v property:country_of_citizenship ?g } . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q769 Q183
SYSTEM
Grenada, Germany
Q769 Q183
OR((Q225970,P27,c(Q1048835)), (Q3814807,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q225970
relation P27
action find
entity Q3814807
relation P27
type Q1048835
[ANSWERS] are the native countriesof Daniel Bernhardt or Kevin Edwards
{'OR': [['Q225970', 'P27', {'concept': 'Q1048835'}], ['Q3814807', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?v ) { ( resource:Q3814807 ) ( resource:Q225970 ) } . ?v property:P27 ?g } . ?g rdf:type ontology:Q1048835 }
Grenada Germany
Grenada and Germany are the native countriesof Daniel Bernhardt or Kevin Edwards
Grenada Germany
action filter_type
action union
action find
entity Daniel Bernhardt
relation country of citizenship
action find
entity Kevin Edwards
relation country of citizenship
type political territorial entity
{'OR': [['Daniel Bernhardt', 'country of citizenship', {'concept': 'political territorial entity'}], ['Kevin Edwards', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?v ) { ( resource:Kevin_Edwards ) ( resource:Daniel_Bernhardt ) } . ?v property:country_of_citizenship ?g } . ?g rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6012116 Q183
P361 P937
Q56061
USER
Which administrative territories are Germany a part of or did Tore Nilsson work ?
OR((Q183,P361,c(Q56061)), (Q6012116,P937,c(Q56061)))
action filter_type
action union
action find
entity Q183
relation P361
action find
entity Q6012116
relation P937
type Q56061
{'OR': [['Q183', 'P361', {'concept': 'Q56061'}], ['Q6012116', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q183 property:P361 ?g } UNION { resource:Q6012116 property:P937 ?g } } . ?g rdf:type ontology:Q56061 }
Tore Nilsson Germany
action filter_type
action union
action find
entity Germany
relation part of
action find
entity Tore Nilsson
relation work location
type administrative territorial entity
{'OR': [['Germany', 'part of', {'concept': 'administrative territorial entity'}], ['Tore Nilsson', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Germany property:part_of ?g } UNION { resource:Tore_Nilsson property:work_location ?g } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1754 Q458
SYSTEM
Stockholm, European Union
Q1754 Q458
OR((Q183,P361,c(Q56061)), (Q6012116,P937,c(Q56061)))
action filter_type
action union
action find
entity Q183
relation P361
action find
entity Q6012116
relation P937
type Q56061
[ANSWERS] are Germany a part of or did Tore Nilsson work
{'OR': [['Q183', 'P361', {'concept': 'Q56061'}], ['Q6012116', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q183 property:P361 ?g } UNION { resource:Q6012116 property:P937 ?g } } . ?g rdf:type ontology:Q56061 }
Stockholm European Union
Stockholm and European Union are Germany a part of or did Tore Nilsson work
Stockholm European Union
action filter_type
action union
action find
entity Germany
relation part of
action find
entity Tore Nilsson
relation work location
type administrative territorial entity
{'OR': [['Germany', 'part of', {'concept': 'administrative territorial entity'}], ['Tore Nilsson', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Germany property:part_of ?g } UNION { resource:Tore_Nilsson property:work_location ?g } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q664
P530
Q1048835 Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with lesser number of political territories or administrative territories than New Zealand ?
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action less
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find
entity Q664
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { { { ?u rdf:type ontology:Q1048835 } UNION { ?u rdf:type ontology:Q15617994 } } . resource:Q664 property:P530 ?u } } . FILTER ( ?s < ?g ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) ?l WHERE { ?b rdf:type ?z . VALUES ( ?z ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?l } }
New Zealand
action less
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
action count
action filter_multi_types
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { { { ?u rdf:type ontology:political_territorial_entity } UNION { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . resource:New_Zealand property:diplomatic_relation ?u } } . FILTER ( ?s < ?g ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) ?l WHERE { ?b rdf:type ?z . VALUES ( ?z ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?l } }
[]
political territorial entity designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action less
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find
entity Q664
relation P530
type Q1048835
type Q15617994
[ANSWERS] are known to have diplomatic connections with lesser number of political territories or administrative territories than New Zealand
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { { { ?u rdf:type ontology:Q1048835 } UNION { ?u rdf:type ontology:Q15617994 } } . resource:Q664 property:P530 ?u } } . FILTER ( ?s < ?g ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) ?l WHERE { ?b rdf:type ?z . VALUES ( ?z ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?l } }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Gabon, Grenada and Papua New Guinea are known to have diplomatic connections with lesser number of political territories or administrative territories than New Zealand
Gabon Grenada Papua New Guinea
action less
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
action count
action filter_multi_types
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { { { ?u rdf:type ontology:political_territorial_entity } UNION { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . resource:New_Zealand property:diplomatic_relation ?u } } . FILTER ( ?s < ?g ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) ?l WHERE { ?b rdf:type ?z . VALUES ( ?z ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?l } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P35
Q502895
USER
How many people are the heads of state of that political territory ?
(Q1000,P35,c(Q502895))
['Q1000', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1241571 property:Q48352 ?z . ?z rdf:type ontology:Q502895 }
['Gabon', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Gabon property:head_of_state ?z . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q1000
SYSTEM
Did you mean Gabon ?
(Q1000,P35,c(Q502895)) (Q769,P35,c(Q502895)) (Q691,P35,c(Q502895))
[ANSWER]
['Q1000', 'P35', {'concept': 'Q502895'}] ['Q769', 'P35', {'concept': 'Q502895'}] ['Q691', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1241571 property:Q48352 ?z . ?z rdf:type ontology:Q502895 }
Did you mean Gabon ?
Gabon
['Gabon', 'head of state', {'concept': 'common name'}] ['Grenada', 'head of state', {'concept': 'common name'}] ['Papua New Guinea', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Gabon property:head_of_state ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q1000,P35,c(Q502895))
['Q1000', 'P35', {'concept': 'Q502895'}]
['Gabon', 'head of state', {'concept': 'common name'}]
[]
SYSTEM
4
Q57521 Q270645 Q172083 Q299629
(Q1000,P35,c(Q502895))
[ANSWER]
['Q1000', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1241571 property:Q48352 ?z . ?z rdf:type ontology:Q502895 }
Ali Bongo Ondimba Rose Francine Rogombé Omar Bongo Léon M'ba
4
['Gabon', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Gabon property:head_of_state ?z . ?z rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q40
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relations with lesser number of political territories than Austria ?
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?g ) WHERE { ?j property:P530 ?w . ?j rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q1048835 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { ?t rdf:type ontology:Q1048835 . resource:Q40 property:P530 ?t } } . FILTER ( ?g < ?n ) }
Austria
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?g ) WHERE { ?j property:diplomatic_relation ?w . ?j rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { ?t rdf:type ontology:political_territorial_entity . resource:Austria property:diplomatic_relation ?t } } . FILTER ( ?g < ?n ) }
[]
political territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[ANSWERS] have diplomatic relations with lesser number of political territories than Austria
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?g ) WHERE { ?j property:P530 ?w . ?j rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q1048835 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { ?t rdf:type ontology:Q1048835 . resource:Q40 property:P530 ?t } } . FILTER ( ?g < ?n ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Gabon, Grenada and Papua New Guinea have diplomatic relations with lesser number of political territories than Austria
Gabon Grenada Papua New Guinea
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?g ) WHERE { ?j property:diplomatic_relation ?w . ?j rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { ?t rdf:type ontology:political_territorial_entity . resource:Austria property:diplomatic_relation ?t } } . FILTER ( ?g < ?n ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q408
P530
Q1048835 Q1048835
USER
And how about Australia?
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q408
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?j ) WHERE { ?g property:P530 ?q . ?g rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { resource:Q408 property:P530 ?y . ?y rdf:type ontology:Q1048835 } } . FILTER ( ?j < ?v ) }
Australia
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Australia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?j ) WHERE { ?g property:diplomatic_relation ?q . ?g rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { resource:Australia property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity } } . FILTER ( ?j < ?v ) }
[]
political territorial entity political territorial entity
Q183 Q35 Q16
SYSTEM
Germany, Denmark, Canada
Q1000 Q40 Q781 Q778 Q183 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q408
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?j ) WHERE { ?g property:P530 ?q . ?g rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { resource:Q408 property:P530 ?y . ?y rdf:type ontology:Q1048835 } } . FILTER ( ?j < ?v ) }
Gabon Austria Antigua and Barbuda The Bahamas Germany Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Germany Denmark Canada
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Australia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?j ) WHERE { ?g property:diplomatic_relation ?q . ?g rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { resource:Australia property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity } } . FILTER ( ?j < ?v ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q781
P530
Q1048835 Q1048835
USER
Which political territories holds diplomatic relationship with greater number of political territories than Antigua and Barbuda ?
(c(Q1048835),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?r ) WHERE { ?a rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q1048835 . ?a property:P530 ?h } GROUP BY ?a } . FILTER ( ?r > ?l ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { resource:Q781 property:P530 ?p . ?p rdf:type ontology:Q1048835 } } }
Antigua and Barbuda
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?r ) WHERE { ?a rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:political_territorial_entity . ?a property:diplomatic_relation ?h } GROUP BY ?a } . FILTER ( ?r > ?l ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?p . ?p rdf:type ontology:political_territorial_entity } } }
[]
political territorial entity political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[ANSWERS] hold diplomatic relationship with greater number of political territories than Antigua and Barbuda
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?r ) WHERE { ?a rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q1048835 . ?a property:P530 ?h } GROUP BY ?a } . FILTER ( ?r > ?l ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { resource:Q781 property:P530 ?p . ?p rdf:type ontology:Q1048835 } } }
Austria Germany Australia Denmark Canada New Zealand
Germany, Australia and Denmark hold diplomatic relationship with greater number of political territories than Antigua and Barbuda
Germany Australia Denmark
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?r ) WHERE { ?a rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:political_territorial_entity . ?a property:diplomatic_relation ?h } GROUP BY ?a } . FILTER ( ?r > ?l ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?p . ?p rdf:type ontology:political_territorial_entity } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q40
P530
Q1048835 Q1048835
USER
And how about Austria?
(c(Q1048835),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?i ) WHERE { ?x property:P530 ?z . ?x rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q1048835 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { resource:Q40 property:P530 ?k . ?k rdf:type ontology:Q1048835 } } . FILTER ( ?i > ?p ) }
Austria
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?i ) WHERE { ?x property:diplomatic_relation ?z . ?x rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { resource:Austria property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity } } . FILTER ( ?i > ?p ) }
[]
political territorial entity political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q183 Q408 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?i ) WHERE { ?x property:P530 ?z . ?x rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q1048835 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { resource:Q40 property:P530 ?k . ?k rdf:type ontology:Q1048835 } } . FILTER ( ?i > ?p ) }
Germany Australia Denmark Canada New Zealand
Germany Australia Denmark
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?i ) WHERE { ?x property:diplomatic_relation ?z . ?x rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:political_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { resource:Austria property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity } } . FILTER ( ?i > ?p ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q183
P530
Q1048835 Q1048835
USER
How many political territories have diplomatic relations with around the same number of political territories as Germany ?
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q183
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?p ) WHERE { ?a rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q1048835 . ?y property:P530 ?a } GROUP BY ?y } . FILTER ( ?p = ?x ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { resource:Q183 property:P530 ?d . ?d rdf:type ontology:Q1048835 } } }
Germany
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?p ) WHERE { ?a rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:political_territorial_entity . ?y property:diplomatic_relation ?a } GROUP BY ?y } . FILTER ( ?p = ?x ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { resource:Germany property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity } } }
[]
political territorial entity political territorial entity
SYSTEM
2
Q183 Q16
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q183
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?p ) WHERE { ?a rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q1048835 . ?y property:P530 ?a } GROUP BY ?y } . FILTER ( ?p = ?x ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { resource:Q183 property:P530 ?d . ?d rdf:type ontology:Q1048835 } } }
Germany Canada
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?p ) WHERE { ?a rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:political_territorial_entity . ?y property:diplomatic_relation ?a } GROUP BY ?y } . FILTER ( ?p = ?x ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { resource:Germany property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P275
Q93288 Q3943414 Q2342494
USER
Which collectables are safeguarded against piracy with max number of contracts and free software licenses ?
(c(Q2342494),P275,c(Q93288)|c(Q3943414))
action argmax
action union
action find_tuple_counts
relation P275
type Q2342494
type Q93288
action find_tuple_counts
relation P275
type Q2342494
type Q3943414
[{'concept': 'Q2342494'}, 'P275', [{'concept': 'Q93288'}, {'concept': 'Q3943414'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?s WHERE { ?c rdf:type ?h . VALUES ( ?h ) { ( ontology:Q3943414 ) ( ontology:Q93288 ) } } GROUP BY ?s } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) ?p WHERE { { ?p property:P275 ?m . ?p rdf:type ontology:Q2342494 . ?m rdf:type ontology:Q3943414 } UNION { ?p rdf:type ontology:Q2342494 . ?m rdf:type ontology:Q93288 . ?p property:P275 ?m } } GROUP BY ?p } . FILTER ( ?b = ?a ) }
action argmax
action union
action find_tuple_counts
relation license
type collectable
type contract
action find_tuple_counts
relation license
type collectable
type free software license
[{'concept': 'collectable'}, 'license', [{'concept': 'contract'}, {'concept': 'free software license'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?s WHERE { ?c rdf:type ?h . VALUES ( ?h ) { ( ontology:free_software_license ) ( ontology:contract ) } } GROUP BY ?s } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) ?p WHERE { { ?p property:license ?m . ?p rdf:type ontology:collectable . ?m rdf:type ontology:free_software_license } UNION { ?p rdf:type ontology:collectable . ?m rdf:type ontology:contract . ?p property:license ?m } } GROUP BY ?p } . FILTER ( ?b = ?a ) }
[]
contract free software license collectable
Q202975 Q722594 Q27777485
SYSTEM
Wuthering Heights, The Hour of the Dragon, Open Digital Projects: NMW Collections and Wikipedia
Q15682257 Q979108 Q830186 Q19066964 Q19040158 Q16726210 Q18059128 Q202975 Q3906638 Q15829731 Q16725717 Q15677438 Q4996905 Q27777485 Q722594 Q15690353 Q7402500 Q19962833 Q19020035 Q10888409 Q19904509 Q1130535 Q1168727 Q15705162 Q2182
(c(Q2342494),P275,c(Q93288)|c(Q3943414))
action argmax
action union
action find_tuple_counts
relation P275
type Q2342494
type Q93288
action find_tuple_counts
relation P275
type Q2342494
type Q3943414
[ANSWERS] are safeguarded against piracy with max number of contracts and free software licenses
[{'concept': 'Q2342494'}, 'P275', [{'concept': 'Q93288'}, {'concept': 'Q3943414'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?s WHERE { ?c rdf:type ?h . VALUES ( ?h ) { ( ontology:Q3943414 ) ( ontology:Q93288 ) } } GROUP BY ?s } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) ?p WHERE { { ?p property:P275 ?m . ?p rdf:type ontology:Q2342494 . ?m rdf:type ontology:Q3943414 } UNION { ?p rdf:type ontology:Q2342494 . ?m rdf:type ontology:Q93288 . ?p property:P275 ?m } } GROUP BY ?p } . FILTER ( ?b = ?a ) }
The Czar: A Tale of the Time of the First Napoleon Rights of Man Linux From Scratch Guidelines for Open Educational Resources in Higher Education An Annotated Bibliography of the Apollo Program Mahayana-Sutralamkara The illegal press 1940-1945 Wuthering Heights Plena Manlibro de Esperanta Gramatiko GEOKOD - a list of codes for the administrative division of Sweden 1862-1951 Bhâminî-Vilasa English Folk-Carols Indian Home Rule Open Digital Projects: NMW Collections and Wikipedia The Hour of the Dragon Hoyle's Games Modernized Sair Tjerita Siti Akbari Introductory Lecture of the One Hundred and Ninth Session of the Medical Department of the University of Pennsylvania A Basic Guide to Open Educational Resources Kidnapped in London First Medical College in Vermont: Castleton 1818–1862 PlanetMath Sarvodaya Elemoont QRpedia
Wuthering Heights, The Hour of the Dragon and Open Digital Projects: NMW Collections and Wikipedia are safeguarded against piracy with max number of contracts and free software licenses
Wuthering Heights The Hour of the Dragon Open Digital Projects: NMW Collections and Wikipedia
action argmax
action union
action find_tuple_counts
relation license
type collectable
type contract
action find_tuple_counts
relation license
type collectable
type free software license
[{'concept': 'collectable'}, 'license', [{'concept': 'contract'}, {'concept': 'free software license'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) ?s WHERE { ?c rdf:type ?h . VALUES ( ?h ) { ( ontology:free_software_license ) ( ontology:contract ) } } GROUP BY ?s } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) ?p WHERE { { ?p property:license ?m . ?p rdf:type ontology:collectable . ?m rdf:type ontology:free_software_license } UNION { ?p rdf:type ontology:collectable . ?m rdf:type ontology:contract . ?p property:license ?m } } GROUP BY ?p } . FILTER ( ?b = ?a ) }
[]