Simple Question (Direct)
Simple Question
Q105929
P106
Q12737077
USER
What do Erich Drach do for a living ?
(Q105929,P106,c(Q12737077))
action filter_type
action find
entity Q105929
relation P106
type Q12737077
['Q105929', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . resource:Q105929 property:P106 ?h }
Erich Drach
action filter_type
action find
entity Erich Drach
relation occupation
type occupation
['Erich Drach', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . resource:Erich_Drach property:occupation ?h }
[]
occupation
Q1622272 Q36180
SYSTEM
university teacher, writer
Q1622272 Q36180
(Q105929,P106,c(Q12737077))
action filter_type
action find
entity Q105929
relation P106
type Q12737077
Erich Drach do for a living as [ANSWERS]
['Q105929', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . resource:Q105929 property:P106 ?h }
university teacher writer
Erich Drach do for a living as university teacher and writer
university teacher writer
action filter_type
action find
entity Erich Drach
relation occupation
type occupation
['Erich Drach', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . resource:Erich_Drach property:occupation ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q105929
P108
Q19335303
USER
Which German business organization is the workplace of that person ?
(Q1622272,P108,c(Q19335303)) (Q36180,P108,c(Q19335303))
action filter_type
action find
entity Q105929
relation P108
type Q19335303
['Q1622272', 'P108', {'concept': 'Q19335303'}] ['Q36180', 'P108', {'concept': 'Q19335303'}]
SELECT DISTINCT ?t WHERE { resource:Q105929 property:P108 ?t . ?t rdf:type ontology:Q19335303 }
Erich Drach
action filter_type
action find
entity Erich Drach
relation employer
type type of business entity in Germany
['university teacher', 'employer', {'concept': 'type of business entity in Germany'}] ['writer', 'employer', {'concept': 'type of business entity in Germany'}]
SELECT DISTINCT ?t WHERE { resource:Erich_Drach property:employer ?t . ?t rdf:type ontology:type_of_business_entity_in_Germany }
[]
type of business entity in Germany
Q152087
SYSTEM
Humboldt University of Berlin
Q152087
(Q1622272,P108,c(Q19335303)) (Q36180,P108,c(Q19335303))
action filter_type
action find
entity Q105929
relation P108
type Q19335303
[ANSWER] is the workplace of that person
['Q1622272', 'P108', {'concept': 'Q19335303'}] ['Q36180', 'P108', {'concept': 'Q19335303'}]
SELECT DISTINCT ?t WHERE { resource:Q105929 property:P108 ?t . ?t rdf:type ontology:Q19335303 }
Humboldt University of Berlin
Humboldt University of Berlin is the workplace of that person
Humboldt University of Berlin
action filter_type
action find
entity Erich Drach
relation employer
type type of business entity in Germany
['university teacher', 'employer', {'concept': 'type of business entity in Germany'}] ['writer', 'employer', {'concept': 'type of business entity in Germany'}]
SELECT DISTINCT ?t WHERE { resource:Erich_Drach property:employer ?t . ?t rdf:type ontology:type_of_business_entity_in_Germany }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q152087 Q4116080
P108
Q502895
USER
Does Ponaryo Astaman work for that German business organization ?
(Q4116080,P108,Q152087)
action is_in
entity Q4116080
action find
entity Q152087
relation P108
['Q4116080', 'P108', 'Q152087']
ASK WHERE { resource:Q152087 property:P108 resource:Q4116080 }
Humboldt University of Berlin Ponaryo Astaman
action is_in
entity Ponaryo Astaman
action find
entity Humboldt University of Berlin
relation employer
['Ponaryo Astaman', 'employer', 'Humboldt University of Berlin']
ASK WHERE { resource:Humboldt_University_of_Berlin property:employer resource:Ponaryo_Astaman }
[]
common name
SYSTEM
NO
(Q4116080,P108,Q152087)
action is_in
entity Q4116080
action find
entity Q152087
relation P108
[ANSWER]
['Q4116080', 'P108', 'Q152087']
ASK WHERE { resource:Q152087 property:P108 resource:Q4116080 }
No
action is_in
entity Ponaryo Astaman
action find
entity Humboldt University of Berlin
relation employer
['Ponaryo Astaman', 'employer', 'Humboldt University of Berlin']
ASK WHERE { resource:Humboldt_University_of_Berlin property:employer resource:Ponaryo_Astaman }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16063867 Q105929
P27
Q1048835
USER
Which political territories are Erich Drach or Hedwig Catharina von Krogh a civilian of ?
OR((Q105929,P27,c(Q1048835)), (Q16063867,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q105929
relation P27
action find
entity Q16063867
relation P27
type Q1048835
{'OR': [['Q105929', 'P27', {'concept': 'Q1048835'}], ['Q16063867', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1048835 . { { resource:Q16063867 property:P27 ?p } UNION { resource:Q105929 property:P27 ?p } } }
Hedwig Catharina von Krogh Erich Drach
action filter_type
action union
action find
entity Erich Drach
relation country of citizenship
action find
entity Hedwig Catharina von Krogh
relation country of citizenship
type political territorial entity
{'OR': [['Erich Drach', 'country of citizenship', {'concept': 'political territorial entity'}], ['Hedwig Catharina von Krogh', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:political_territorial_entity . { { resource:Hedwig_Catharina_von_Krogh property:country_of_citizenship ?p } UNION { resource:Erich_Drach property:country_of_citizenship ?p } } }
[]
political territorial entity
Q183 Q35
SYSTEM
Germany, Denmark
Q183 Q35
OR((Q105929,P27,c(Q1048835)), (Q16063867,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q105929
relation P27
action find
entity Q16063867
relation P27
type Q1048835
[ANSWERS] are Erich Drach or Hedwig Catharina von Krogh a civilian of
{'OR': [['Q105929', 'P27', {'concept': 'Q1048835'}], ['Q16063867', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1048835 . { { resource:Q16063867 property:P27 ?p } UNION { resource:Q105929 property:P27 ?p } } }
Germany Denmark
Germany and Denmark are Erich Drach or Hedwig Catharina von Krogh a civilian of
Germany Denmark
action filter_type
action union
action find
entity Erich Drach
relation country of citizenship
action find
entity Hedwig Catharina von Krogh
relation country of citizenship
type political territorial entity
{'OR': [['Erich Drach', 'country of citizenship', {'concept': 'political territorial entity'}], ['Hedwig Catharina von Krogh', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:political_territorial_entity . { { resource:Hedwig_Catharina_von_Krogh property:country_of_citizenship ?p } UNION { resource:Erich_Drach property:country_of_citizenship ?p } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q16063867
P27
Q1048835
USER
How many political territories are the native countriesof Hedwig Catharina von Krogh ?
(Q16063867,P27,c(Q1048835))
action count
action filter_type
action find
entity Q16063867
relation P27
type Q1048835
['Q16063867', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { resource:Q16063867 property:P27 ?q . ?q rdf:type ontology:Q1048835 }
Hedwig Catharina von Krogh
action count
action filter_type
action find
entity Hedwig Catharina von Krogh
relation country of citizenship
type political territorial entity
['Hedwig Catharina von Krogh', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { resource:Hedwig_Catharina_von_Krogh property:country_of_citizenship ?q . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q35
(Q16063867,P27,c(Q1048835))
action count
action filter_type
action find
entity Q16063867
relation P27
type Q1048835
[ANSWER]
['Q16063867', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { resource:Q16063867 property:P27 ?q . ?q rdf:type ontology:Q1048835 }
Denmark
1
action count
action filter_type
action find
entity Hedwig Catharina von Krogh
relation country of citizenship
type political territorial entity
['Hedwig Catharina von Krogh', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { resource:Hedwig_Catharina_von_Krogh property:country_of_citizenship ?q . ?q rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16063867
P21
Q290
USER
Which sex does that person have ?
action filter_type
action find
entity Q16063867
relation P21
type Q290
SELECT DISTINCT ?r WHERE { resource:Q16063867 property:P21 ?r . ?r rdf:type ontology:Q290 }
Hedwig Catharina von Krogh
action filter_type
action find
entity Hedwig Catharina von Krogh
relation gender
type sex
SELECT DISTINCT ?r WHERE { resource:Hedwig_Catharina_von_Krogh property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
action filter_type
action find
entity Q16063867
relation P21
type Q290
That person has a [ANSWER]
SELECT DISTINCT ?r WHERE { resource:Q16063867 property:P21 ?r . ?r rdf:type ontology:Q290 }
female
That person has a female
female
action filter_type
action find
entity Hedwig Catharina von Krogh
relation gender
type sex
SELECT DISTINCT ?r WHERE { resource:Hedwig_Catharina_von_Krogh property:gender ?r . ?r rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P127
Q1048835 Q2235308 Q811430
USER
Which political territories are the owners of max number of ship types and constructions ?
(c(Q2235308)|c(Q811430),P127,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q2235308
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q811430
[[{'concept': 'Q2235308'}, {'concept': 'Q811430'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) ?r WHERE { { ?l property:P127 ?r . ?l rdf:type ontology:Q2235308 . ?r rdf:type ontology:Q1048835 } UNION { ?l property:P127 ?r . ?r rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q811430 } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) ?g WHERE { { ?x property:P127 ?g . ?x rdf:type ontology:Q2235308 . ?g rdf:type ontology:Q1048835 } UNION { ?x property:P127 ?g . ?g rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q811430 } } GROUP BY ?g } . FILTER ( ?o = ?c ) }
action argmax
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type ship type
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type construction
[[{'concept': 'ship type'}, {'concept': 'construction'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) ?r WHERE { { ?l property:owned_by ?r . ?l rdf:type ontology:ship_type . ?r rdf:type ontology:political_territorial_entity } UNION { ?l property:owned_by ?r . ?r rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:construction } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) ?g WHERE { { ?x property:owned_by ?g . ?x rdf:type ontology:ship_type . ?g rdf:type ontology:political_territorial_entity } UNION { ?x property:owned_by ?g . ?g rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:construction } } GROUP BY ?g } . FILTER ( ?o = ?c ) }
[]
political territorial entity ship type construction
Q5756
SYSTEM
Community of Madrid
Q5756
(c(Q2235308)|c(Q811430),P127,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q2235308
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q811430
[ANSWER] is the owners of max number of ship types and constructions
[[{'concept': 'Q2235308'}, {'concept': 'Q811430'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) ?r WHERE { { ?l property:P127 ?r . ?l rdf:type ontology:Q2235308 . ?r rdf:type ontology:Q1048835 } UNION { ?l property:P127 ?r . ?r rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q811430 } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) ?g WHERE { { ?x property:P127 ?g . ?x rdf:type ontology:Q2235308 . ?g rdf:type ontology:Q1048835 } UNION { ?x property:P127 ?g . ?g rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q811430 } } GROUP BY ?g } . FILTER ( ?o = ?c ) }
Community of Madrid
Community of Madrid is the owners of max number of ship types and constructions
Community of Madrid
action argmax
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type ship type
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type construction
[[{'concept': 'ship type'}, {'concept': 'construction'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) ?r WHERE { { ?l property:owned_by ?r . ?l rdf:type ontology:ship_type . ?r rdf:type ontology:political_territorial_entity } UNION { ?l property:owned_by ?r . ?r rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:construction } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) ?g WHERE { { ?x property:owned_by ?g . ?x rdf:type ontology:ship_type . ?g rdf:type ontology:political_territorial_entity } UNION { ?x property:owned_by ?g . ?g rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:construction } } GROUP BY ?g } . FILTER ( ?o = ?c ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P1376
Q56061
USER
How many administrative territories are center of administration for that political territory ?
(c(Q56061),P1376,Q5756)
action count
action filter_type
action find_reverse
entity Q5756
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q5756']
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:P1376 resource:Q5756 . ?r rdf:type ontology:Q56061 }
action count
action filter_type
action find_reverse
entity Community of Madrid
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Community of Madrid']
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:capital_of resource:Community_of_Madrid . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q2807
(c(Q56061),P1376,Q5756)
action count
action filter_type
action find_reverse
entity Q5756
relation P1376
type Q56061
[ANSWER]
[{'concept': 'Q56061'}, 'P1376', 'Q5756']
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:P1376 resource:Q5756 . ?r rdf:type ontology:Q56061 }
Madrid
1
action count
action filter_type
action find_reverse
entity Community of Madrid
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Community of Madrid']
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:capital_of resource:Community_of_Madrid . ?r rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q40
P127
Q1048835 Q3947 Q79007
USER
Which political territories are the owners of less number of houses or streets than Austria ?
(c(Q3947)|c(Q79007),P127,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q3947
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q79007
action count
action filter_multi_types
action find_reverse
entity Q40
relation P127
type Q3947
type Q79007
[[{'concept': 'Q3947'}, {'concept': 'Q79007'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?j ) WHERE { VALUES ( ?a ) { ( ontology:Q3947 ) ( ontology:Q79007 ) } . ?r rdf:type ?a } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { ?g property:P127 resource:Q40 . { ?g rdf:type ?f . VALUES ( ?f ) { ( ontology:Q79007 ) ( ontology:Q3947 ) } } } } . FILTER ( ?j < ?e ) }
Austria
action less
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type house
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type street
action count
action filter_multi_types
action find_reverse
entity Austria
relation owned by
type house
type street
[[{'concept': 'house'}, {'concept': 'street'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?j ) WHERE { VALUES ( ?a ) { ( ontology:house ) ( ontology:street ) } . ?r rdf:type ?a } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { ?g property:owned_by resource:Austria . { ?g rdf:type ?f . VALUES ( ?f ) { ( ontology:street ) ( ontology:house ) } } } } . FILTER ( ?j < ?e ) }
[]
political territorial entity house street
Q408 Q35 Q16
SYSTEM
Australia, Denmark, Canada
Q192536 Q170322 Q1648590 Q318314 Q3741 Q20937 Q2321093 Q5691 Q188399 Q490638 Q6040 Q126514 Q211091 Q6053 Q192387 Q133083 Q217838 Q74881 Q8543 Q6041 Q2379199 Q6139 Q8178 Q6339 Q7379734 Q1823 Q8551 Q13786 Q5783 Q741765 Q193317 Q35 Q191091 Q2947 Q13862 Q276176 Q1135166 Q46070 Q211106 Q202174 Q54902 Q192697 Q188373 Q190930 Q192702 Q2175 Q849584 Q2271 Q6142 Q909707 Q234 Q100166 Q17557 Q231 Q9331 Q6047 Q6045 Q9337 Q8182 Q23635 Q408 Q193307 Q207111 Q16 Q206926 Q5756
(c(Q3947)|c(Q79007),P127,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q3947
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q79007
action count
action filter_multi_types
action find_reverse
entity Q40
relation P127
type Q3947
type Q79007
[ANSWERS] are the owners of less number of houses or streets than Austria
[[{'concept': 'Q3947'}, {'concept': 'Q79007'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?j ) WHERE { VALUES ( ?a ) { ( ontology:Q3947 ) ( ontology:Q79007 ) } . ?r rdf:type ?a } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { ?g property:P127 resource:Q40 . { ?g rdf:type ?f . VALUES ( ?f ) { ( ontology:Q79007 ) ( ontology:Q3947 ) } } } } . FILTER ( ?j < ?e ) }
Zlín Region Qingdao Manises Ipatinga Special Region of Yogyakarta Gyeonggi Province Chorrillos South Karelia Central Bohemian Region Almendralejo Goslar Dumfries and Galloway Renfrewshire Gifhorn Londrina Gauteng Stirling Dalian Germersheim Wolfenbüttel politics of Edinburgh Havelland Karlsruhe Erzgebirgskreis Aachen Aceh Südliche Weinstraße Cebu Andalusia San Fernando Pardubice Region Denmark Karlovy Vary Region Dithmarschen Negros Occidental Volta Redonda Greater London Authority Plzeň Region Moray Argyll and Bute Fuenlabrada South Moravian Region South Bohemia Region Vysočina Region Ústí nad Labem Region Riau Province Jaraguá do Sul South Sumatra Potsdam-Mittelmark Sestao Flemish Region Orkney Islands California Republic Walloon Region Flemish Community Helmstedt Peine Flemish Region Rastatt Bermuda Australia Olomouc Region North Lanarkshire Canada North Ayrshire Community of Madrid
Australia, Denmark and Canada are the owners of less number of houses or streets than Austria
Australia Denmark Canada
action less
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type house
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type street
action count
action filter_multi_types
action find_reverse
entity Austria
relation owned by
type house
type street
[[{'concept': 'house'}, {'concept': 'street'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?j ) WHERE { VALUES ( ?a ) { ( ontology:house ) ( ontology:street ) } . ?r rdf:type ?a } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { ?g property:owned_by resource:Austria . { ?g rdf:type ?f . VALUES ( ?f ) { ( ontology:street ) ( ontology:house ) } } } } . FILTER ( ?j < ?e ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q183
P127
Q1048835 Q3947 Q79007
USER
And how about Germany?
(c(Q3947)|c(Q79007),P127,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q3947
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q79007
action count
action filter_multi_types
action find_reverse
entity Q183
relation P127
type Q3947
type Q79007
[[{'concept': 'Q3947'}, {'concept': 'Q79007'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) ?s WHERE { VALUES ( ?j ) { ( ontology:Q79007 ) ( ontology:Q3947 ) } . ?l rdf:type ?j } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P127 resource:Q183 . { { ?z rdf:type ontology:Q3947 } UNION { ?z rdf:type ontology:Q79007 } } } } . FILTER ( ?c < ?y ) }
Germany
action less
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type house
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type street
action count
action filter_multi_types
action find_reverse
entity Germany
relation owned by
type house
type street
[[{'concept': 'house'}, {'concept': 'street'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) ?s WHERE { VALUES ( ?j ) { ( ontology:street ) ( ontology:house ) } . ?l rdf:type ?j } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:owned_by resource:Germany . { { ?z rdf:type ontology:house } UNION { ?z rdf:type ontology:street } } } } . FILTER ( ?c < ?y ) }
[]
political territorial entity house street
Q408 Q35 Q16
SYSTEM
Australia, Denmark, Canada
Q192536 Q170322 Q1648590 Q318314 Q3741 Q20937 Q2321093 Q5691 Q188399 Q490638 Q6040 Q126514 Q211091 Q6053 Q192387 Q133083 Q217838 Q74881 Q8543 Q6041 Q2379199 Q6139 Q8178 Q6339 Q7379734 Q1823 Q8551 Q13786 Q5783 Q741765 Q193317 Q35 Q191091 Q2947 Q13862 Q276176 Q1135166 Q46070 Q211106 Q202174 Q54902 Q192697 Q188373 Q190930 Q192702 Q2175 Q849584 Q2271 Q6142 Q909707 Q234 Q100166 Q17557 Q231 Q40 Q9331 Q6047 Q6045 Q9337 Q8182 Q23635 Q408 Q193307 Q207111 Q16 Q206926 Q5756
(c(Q3947)|c(Q79007),P127,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q3947
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q79007
action count
action filter_multi_types
action find_reverse
entity Q183
relation P127
type Q3947
type Q79007
[ANSWERS]
[[{'concept': 'Q3947'}, {'concept': 'Q79007'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) ?s WHERE { VALUES ( ?j ) { ( ontology:Q79007 ) ( ontology:Q3947 ) } . ?l rdf:type ?j } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P127 resource:Q183 . { { ?z rdf:type ontology:Q3947 } UNION { ?z rdf:type ontology:Q79007 } } } } . FILTER ( ?c < ?y ) }
Zlín Region Qingdao Manises Ipatinga Special Region of Yogyakarta Gyeonggi Province Chorrillos South Karelia Central Bohemian Region Almendralejo Goslar Dumfries and Galloway Renfrewshire Gifhorn Londrina Gauteng Stirling Dalian Germersheim Wolfenbüttel politics of Edinburgh Havelland Karlsruhe Erzgebirgskreis Aachen Aceh Südliche Weinstraße Cebu Andalusia San Fernando Pardubice Region Denmark Karlovy Vary Region Dithmarschen Negros Occidental Volta Redonda Greater London Authority Plzeň Region Moray Argyll and Bute Fuenlabrada South Moravian Region South Bohemia Region Vysočina Region Ústí nad Labem Region Riau Province Jaraguá do Sul South Sumatra Potsdam-Mittelmark Sestao Flemish Region Orkney Islands California Republic Walloon Region Austria Flemish Community Helmstedt Peine Flemish Region Rastatt Bermuda Australia Olomouc Region North Lanarkshire Canada North Ayrshire Community of Madrid
Australia Denmark Canada
action less
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type house
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type street
action count
action filter_multi_types
action find_reverse
entity Germany
relation owned by
type house
type street
[[{'concept': 'house'}, {'concept': 'street'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) ?s WHERE { VALUES ( ?j ) { ( ontology:street ) ( ontology:house ) } . ?l rdf:type ?j } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:owned_by resource:Germany . { { ?z rdf:type ontology:house } UNION { ?z rdf:type ontology:street } } } } . FILTER ( ?c < ?y ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q116423
P530
Q15617994
USER
Do Arce have tactful political relations with those political territories ?
(Q116423,P530,Q408) (Q116423,P530,Q35) (Q116423,P530,Q16)
action is_in
entity prev_answer
action find
entity Q116423
relation P530
['Q116423', 'P530', 'Q408'] ['Q116423', 'P530', 'Q35'] ['Q116423', 'P530', 'Q16']
ASK WHERE { resource:Q116423 property:P530 ?s . VALUES ( ?s ) { ( resource:Q192536 ) ( resource:Q170322 ) ( resource:Q1648590 ) } }
Arce
action is_in
entity prev_answer
action find
entity Arce
relation diplomatic relation
['Arce', 'diplomatic relation', 'Australia'] ['Arce', 'diplomatic relation', 'Denmark'] ['Arce', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Arce property:diplomatic_relation ?s . VALUES ( ?s ) { ( resource:Zlín_Region ) ( resource:Qingdao ) ( resource:Manises ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q116423,P530,Q408) (Q116423,P530,Q35) (Q116423,P530,Q16)
action is_in
entity prev_answer
action find
entity Q116423
relation P530
[ANSWER]
['Q116423', 'P530', 'Q408'] ['Q116423', 'P530', 'Q35'] ['Q116423', 'P530', 'Q16']
ASK WHERE { resource:Q116423 property:P530 ?s . VALUES ( ?s ) { ( resource:Q192536 ) ( resource:Q170322 ) ( resource:Q1648590 ) } }
No
action is_in
entity prev_answer
action find
entity Arce
relation diplomatic relation
['Arce', 'diplomatic relation', 'Australia'] ['Arce', 'diplomatic relation', 'Denmark'] ['Arce', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Arce property:diplomatic_relation ?s . VALUES ( ?s ) { ( resource:Zlín_Region ) ( resource:Qingdao ) ( resource:Manises ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1008
P530
Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with less number of political territories than Côte d'Ivoire ?
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1008
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { resource:Q1008 property:P530 ?z . ?z rdf:type ontology:Q1048835 } } . FILTER ( ?w < ?i ) . { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?w ) WHERE { ?s property:P530 ?b . ?b rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 } GROUP BY ?b } }
Côte d'Ivoire
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Côte d'Ivoire
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { resource:Côte_d'Ivoire property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity } } . FILTER ( ?w < ?i ) . { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?w ) WHERE { ?s property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?b } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
12
Q805 Q784 Q710 Q399 Q398 Q790 Q1013 Q236 Q842 Q970 Q874 Q858
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1008
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { resource:Q1008 property:P530 ?z . ?z rdf:type ontology:Q1048835 } } . FILTER ( ?w < ?i ) . { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?w ) WHERE { ?s property:P530 ?b . ?b rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 } GROUP BY ?b } }
Yemen Dominica Kiribati Armenia Bahrain Haiti Lesotho Montenegro Oman Comoros Turkmenistan Syria
12
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Côte d'Ivoire
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { resource:Côte_d'Ivoire property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity } } . FILTER ( ?w < ?i ) . { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?w ) WHERE { ?s property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity } GROUP BY ?b } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q408
P551
Q95074
USER
Which fictional characters live in Australia ?
(c(Q95074),P551,Q408)
action filter_type
action find_reverse
entity Q408
relation P551
type Q95074
[{'concept': 'Q95074'}, 'P551', 'Q408']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q95074 . ?r property:P551 resource:Q408 }
Australia
action filter_type
action find_reverse
entity Australia
relation residence
type fictional character
[{'concept': 'fictional character'}, 'residence', 'Australia']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:fictional_character . ?r property:residence resource:Australia }
[]
fictional character
Q27556028 Q27561644 Q27564450
SYSTEM
Marahute, Frank, Red
Q27556028 Q27561644 Q27564306 Q27564450
(c(Q95074),P551,Q408)
action filter_type
action find_reverse
entity Q408
relation P551
type Q95074
[ANSWERS] live in Australia
[{'concept': 'Q95074'}, 'P551', 'Q408']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q95074 . ?r property:P551 resource:Q408 }
Marahute Frank Krebbs Red
Marahute, Frank and Red live in Australia
Marahute Frank Red
action filter_type
action find_reverse
entity Australia
relation residence
type fictional character
[{'concept': 'fictional character'}, 'residence', 'Australia']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:fictional_character . ?r property:residence resource:Australia }
[]
Clarification
Simple Question|Single Entity|Indirect
Q27564450
P1441
Q11424
USER
Which film is that fictional character present in ?
(Q27564450,P1441,c(Q11424))
action filter_type
action find
entity Q27564450
relation P1441
type Q11424
['Q27564450', 'P1441', {'concept': 'Q11424'}]
SELECT DISTINCT ?v WHERE { resource:Q27564450 property:P1441 ?v . ?v rdf:type ontology:Q11424 }
Red
action filter_type
action find
entity Red
relation present in work
type film
['Red', 'present in work', {'concept': 'film'}]
SELECT DISTINCT ?v WHERE { resource:Red property:present_in_work ?v . ?v rdf:type ontology:film }
[]
film
Clarification for simple ques.
Q27564450
SYSTEM
Did you mean Red ?
Q27556028 Q27561644 Q27564450
(Q27556028,P1441,c(Q11424)) (Q27561644,P1441,c(Q11424)) (Q27564450,P1441,c(Q11424))
[ANSWER]
['Q27556028', 'P1441', {'concept': 'Q11424'}] ['Q27561644', 'P1441', {'concept': 'Q11424'}] ['Q27564450', 'P1441', {'concept': 'Q11424'}]
SELECT DISTINCT ?v WHERE { resource:Q27564450 property:P1441 ?v . ?v rdf:type ontology:Q11424 }
Marahute Frank Red
Did you mean Red ?
Red
['Marahute', 'present in work', {'concept': 'film'}] ['Frank', 'present in work', {'concept': 'film'}] ['Red', 'present in work', {'concept': 'film'}]
SELECT DISTINCT ?v WHERE { resource:Red property:present_in_work ?v . ?v rdf:type ontology:film }
[]
Simple Question (Coreferenced)
USER
Yes
(Q27564450,P1441,c(Q11424))
['Q27564450', 'P1441', {'concept': 'Q11424'}]
['Red', 'present in work', {'concept': 'film'}]
[]
Q202371
SYSTEM
The Rescuers Down Under
Q202371
(Q27564450,P1441,c(Q11424))
action filter_type
action find
entity Q27564450
relation P1441
type Q11424
That fictional character is in [ANSWER]
['Q27564450', 'P1441', {'concept': 'Q11424'}]
SELECT DISTINCT ?v WHERE { resource:Q27564450 property:P1441 ?v . ?v rdf:type ontology:Q11424 }
The Rescuers Down Under
That fictional character is in The Rescuers Down Under
The Rescuers Down Under
action filter_type
action find
entity Red
relation present in work
type film
['Red', 'present in work', {'concept': 'film'}]
SELECT DISTINCT ?v WHERE { resource:Red property:present_in_work ?v . ?v rdf:type ontology:film }
[]