Simple Question (Direct)
Simple Question
Q2645454
P106
Q12737077
USER
What does Alfred Matusche do for a living ?
(Q2645454,P106,c(Q12737077))
action filter_type
action find
entity Q2645454
relation P106
type Q12737077
['Q2645454', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q2645454 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
Alfred Matusche
action filter_type
action find
entity Alfred Matusche
relation occupation
type occupation
['Alfred Matusche', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Alfred_Matusche property:occupation ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q36180
SYSTEM
writer
Q36180
(Q2645454,P106,c(Q12737077))
action filter_type
action find
entity Q2645454
relation P106
type Q12737077
Alfred Matusche does for a living as [ANSWER]
['Q2645454', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q2645454 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
writer
Alfred Matusche does for a living as writer
writer
action filter_type
action find
entity Alfred Matusche
relation occupation
type occupation
['Alfred Matusche', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Alfred_Matusche property:occupation ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2645454
P21
Q290
USER
Which sex does Alfred Matusche belong to ?
(Q2645454,P21,c(Q290))
action filter_type
action find
entity Q2645454
relation P21
type Q290
['Q2645454', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q2645454 property:P21 ?z . ?z rdf:type ontology:Q290 }
Alfred Matusche
action filter_type
action find
entity Alfred Matusche
relation gender
type sex
['Alfred Matusche', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Alfred_Matusche property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2645454,P21,c(Q290))
action filter_type
action find
entity Q2645454
relation P21
type Q290
Alfred Matusche belongs to [ANSWER]
['Q2645454', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q2645454 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
Alfred Matusche belongs to male
male
action filter_type
action find
entity Alfred Matusche
relation gender
type sex
['Alfred Matusche', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Alfred_Matusche property:gender ?z . ?z rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1986571
Q290
USER
And how about Gryzelda Konstancja Zamoyska?
(Q1986571,P21,c(Q290))
action filter_type
action find
entity Q1986571
relation P21
type Q290
['Q1986571', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q1986571 property:P21 ?f . ?f rdf:type ontology:Q290 }
Gryzelda Konstancja Zamoyska
action filter_type
action find
entity Gryzelda Konstancja Zamoyska
relation gender
type sex
['Gryzelda Konstancja Zamoyska', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Gryzelda_Konstancja_Zamoyska property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q1986571,P21,c(Q290))
action filter_type
action find
entity Q1986571
relation P21
type Q290
[ANSWER]
['Q1986571', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q1986571 property:P21 ?f . ?f rdf:type ontology:Q290 }
female
female
action filter_type
action find
entity Gryzelda Konstancja Zamoyska
relation gender
type sex
['Gryzelda Konstancja Zamoyska', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Gryzelda_Konstancja_Zamoyska property:gender ?f . ?f rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1986571
P40
Q502895
USER
Which people have that one as an offspring ?
(c(Q502895),P40,Q6581072)
action filter_type
action find_reverse
entity Q1986571
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q6581072']
SELECT DISTINCT ?b WHERE { ?b property:P40 resource:Q1986571 . ?b rdf:type ontology:Q502895 }
Gryzelda Konstancja Zamoyska
action filter_type
action find_reverse
entity Gryzelda Konstancja Zamoyska
relation child
type common name
[{'concept': 'common name'}, 'child', 'female']
SELECT DISTINCT ?b WHERE { ?b property:child resource:Gryzelda_Konstancja_Zamoyska . ?b rdf:type ontology:common_name }
[]
common name
Q3193942 Q1288242
SYSTEM
Katarzyna Ostrogska, Tomasz Zamoyski
Q3193942 Q1288242
(c(Q502895),P40,Q6581072)
action filter_type
action find_reverse
entity Q1986571
relation P40
type Q502895
[ANSWERS] have that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q6581072']
SELECT DISTINCT ?b WHERE { ?b property:P40 resource:Q1986571 . ?b rdf:type ontology:Q502895 }
Katarzyna Ostrogska Tomasz Zamoyski
Katarzyna Ostrogska and Tomasz Zamoyski have that one as an offspring
Katarzyna Ostrogska Tomasz Zamoyski
action filter_type
action find_reverse
entity Gryzelda Konstancja Zamoyska
relation child
type common name
[{'concept': 'common name'}, 'child', 'female']
SELECT DISTINCT ?b WHERE { ?b property:child resource:Gryzelda_Konstancja_Zamoyska . ?b rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1288242
P40
Q502895
USER
How many people are an offsprings of Tomasz Zamoyski ?
(Q1288242,P40,c(Q502895))
action count
action filter_type
action find
entity Q1288242
relation P40
type Q502895
['Q1288242', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { resource:Q1288242 property:P40 ?f . ?f rdf:type ontology:Q502895 }
Tomasz Zamoyski
action count
action filter_type
action find
entity Tomasz Zamoyski
relation child
type common name
['Tomasz Zamoyski', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { resource:Tomasz_Zamoyski property:child ?f . ?f rdf:type ontology:common_name }
[]
common name
SYSTEM
2
Q1682235 Q1986571
(Q1288242,P40,c(Q502895))
action count
action filter_type
action find
entity Q1288242
relation P40
type Q502895
[ANSWER]
['Q1288242', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { resource:Q1288242 property:P40 ?f . ?f rdf:type ontology:Q502895 }
Jan Zamoyski Gryzelda Konstancja Zamoyska
2
action count
action filter_type
action find
entity Tomasz Zamoyski
relation child
type common name
['Tomasz Zamoyski', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { resource:Tomasz_Zamoyski property:child ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1288242
P26
Q502895
USER
Which person is the life partner of that one ?
action filter_type
action find
entity Q1288242
relation P26
type Q502895
SELECT DISTINCT ?x WHERE { resource:Q1288242 property:P26 ?x . ?x rdf:type ontology:Q502895 }
Tomasz Zamoyski
action filter_type
action find
entity Tomasz Zamoyski
relation spouse
type common name
SELECT DISTINCT ?x WHERE { resource:Tomasz_Zamoyski property:spouse ?x . ?x rdf:type ontology:common_name }
[]
common name
Q3193942
SYSTEM
Katarzyna Ostrogska
Q3193942
action filter_type
action find
entity Q1288242
relation P26
type Q502895
[ANSWER] is the life partner of that one
SELECT DISTINCT ?x WHERE { resource:Q1288242 property:P26 ?x . ?x rdf:type ontology:Q502895 }
Katarzyna Ostrogska
Katarzyna Ostrogska is the life partner of that one
Katarzyna Ostrogska
action filter_type
action find
entity Tomasz Zamoyski
relation spouse
type common name
SELECT DISTINCT ?x WHERE { resource:Tomasz_Zamoyski property:spouse ?x . ?x rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1330340 Q2645454
P19 P937
Q515
USER
Which cities are the work locations of Alfred Matusche and were Elisabeth Voigt born at ?
AND((Q2645454,P937,c(Q515)), (Q1330340,P19,c(Q515)))
action filter_type
action intersection
action find
entity Q2645454
relation P937
action find
entity Q1330340
relation P19
type Q515
{'AND': [['Q2645454', 'P937', {'concept': 'Q515'}], ['Q1330340', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q515 . resource:Q2645454 property:P937 ?f . resource:Q1330340 property:P19 ?f }
Elisabeth Voigt Alfred Matusche
action filter_type
action intersection
action find
entity Alfred Matusche
relation work location
action find
entity Elisabeth Voigt
relation place of birth
type city
{'AND': [['Alfred Matusche', 'work location', {'concept': 'city'}], ['Elisabeth Voigt', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:city . resource:Alfred_Matusche property:work_location ?f . resource:Elisabeth_Voigt property:place_of_birth ?f }
[]
city
Q2079
SYSTEM
Leipzig
Q2079
AND((Q2645454,P937,c(Q515)), (Q1330340,P19,c(Q515)))
action filter_type
action intersection
action find
entity Q2645454
relation P937
action find
entity Q1330340
relation P19
type Q515
[ANSWER] is the work locations of Alfred Matusche and were Elisabeth Voigt born at
{'AND': [['Q2645454', 'P937', {'concept': 'Q515'}], ['Q1330340', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q515 . resource:Q2645454 property:P937 ?f . resource:Q1330340 property:P19 ?f }
Leipzig
Leipzig is the work locations of Alfred Matusche and were Elisabeth Voigt born at
Leipzig
action filter_type
action intersection
action find
entity Alfred Matusche
relation work location
action find
entity Elisabeth Voigt
relation place of birth
type city
{'AND': [['Alfred Matusche', 'work location', {'concept': 'city'}], ['Elisabeth Voigt', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:city . resource:Alfred_Matusche property:work_location ?f . resource:Elisabeth_Voigt property:place_of_birth ?f }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P840
Q515 Q838948 Q2342494
USER
Which cities are lesser number of works of art and collectables set in than that city ?
(c(Q838948)|c(Q2342494),P840,c(Q515))
action less
action union
action find_reverse_tuple_counts
relation P840
type Q515
type Q838948
action find_reverse_tuple_counts
relation P840
type Q515
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q2079
relation P840
type Q838948
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q515'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) ?l WHERE { { ?a property:P840 ?l . ?l rdf:type ontology:Q515 . ?a rdf:type ontology:Q838948 } UNION { ?l rdf:type ontology:Q515 . ?a rdf:type ontology:Q2342494 . ?a property:P840 ?l } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { { { ?i rdf:type ontology:Q838948 } UNION { ?i rdf:type ontology:Q2342494 } } . ?i property:P840 resource:Q2079 } } . FILTER ( ?r < ?e ) }
action less
action union
action find_reverse_tuple_counts
relation narrative location
type city
type work of art
action find_reverse_tuple_counts
relation narrative location
type city
type collectable
action count
action filter_multi_types
action find_reverse
entity Leipzig
relation narrative location
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'city'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) ?l WHERE { { ?a property:narrative_location ?l . ?l rdf:type ontology:city . ?a rdf:type ontology:work_of_art } UNION { ?l rdf:type ontology:city . ?a rdf:type ontology:collectable . ?a property:narrative_location ?l } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { { { ?i rdf:type ontology:work_of_art } UNION { ?i rdf:type ontology:collectable } } . ?i property:narrative_location resource:Leipzig } } . FILTER ( ?r < ?e ) }
[]
city work of art collectable
Q16506 Q2999 Q6602
SYSTEM
České Budějovice, Würzburg, Strasbourg
Q2749 Q5690 Q9005 Q3852 Q6602 Q16506 Q2833 Q1533 Q6582 Q3994 Q2119 Q3126 Q3004 Q3014 Q2978 Q2999
(c(Q838948)|c(Q2342494),P840,c(Q515))
action less
action union
action find_reverse_tuple_counts
relation P840
type Q515
type Q838948
action find_reverse_tuple_counts
relation P840
type Q515
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q2079
relation P840
type Q838948
type Q2342494
[ANSWERS] are lesser number of works of art and collectables set in than that city
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q515'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) ?l WHERE { { ?a property:P840 ?l . ?l rdf:type ontology:Q515 . ?a rdf:type ontology:Q838948 } UNION { ?l rdf:type ontology:Q515 . ?a rdf:type ontology:Q2342494 . ?a property:P840 ?l } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { { { ?i rdf:type ontology:Q838948 } UNION { ?i rdf:type ontology:Q2342494 } } . ?i property:P840 resource:Q2079 } } . FILTER ( ?r < ?e ) }
Augsburg Sparta Brussels Worms Strasbourg České Budějovice Freiburg im Breisgau Caracas Carcassonne Kempten Mannheim Erlangen Ingolstadt Wolfsburg Regensburg Würzburg
České Budějovice, Würzburg and Strasbourg are lesser number of works of art and collectables set in than that city
České Budějovice Würzburg Strasbourg
action less
action union
action find_reverse_tuple_counts
relation narrative location
type city
type work of art
action find_reverse_tuple_counts
relation narrative location
type city
type collectable
action count
action filter_multi_types
action find_reverse
entity Leipzig
relation narrative location
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'city'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) ?l WHERE { { ?a property:narrative_location ?l . ?l rdf:type ontology:city . ?a rdf:type ontology:work_of_art } UNION { ?l rdf:type ontology:city . ?a rdf:type ontology:collectable . ?a property:narrative_location ?l } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { { { ?i rdf:type ontology:work_of_art } UNION { ?i rdf:type ontology:collectable } } . ?i property:narrative_location resource:Leipzig } } . FILTER ( ?r < ?e ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q14409
P1376
Q20667921 Q7275 Q515
USER
How many cities are center of administration for greater number of french administrative divisions and states than Palangkaraya ?
(c(Q515),P1376,c(Q20667921)|c(Q7275))
action count
action greater
action union
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_multi_types
action find
entity Q14409
relation P1376
type Q20667921
type Q7275
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q20667921'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?h ) WHERE { { ?j property:P1376 ?g . ?j rdf:type ontology:Q515 . ?g rdf:type ontology:Q20667921 } UNION { ?j property:P1376 ?g . ?j rdf:type ontology:Q515 . ?g rdf:type ontology:Q7275 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { resource:Q14409 property:P1376 ?d . { VALUES ( ?w ) { ( ontology:Q7275 ) ( ontology:Q20667921 ) } . ?d rdf:type ?w } } } . FILTER ( ?h > ?x ) }
Palangkaraya
action count
action greater
action union
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_multi_types
action find
entity Palangkaraya
relation capital of
type type of french administrative division
type state
[{'concept': 'city'}, 'capital of', [{'concept': 'type of french administrative division'}, {'concept': 'state'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?h ) WHERE { { ?j property:capital_of ?g . ?j rdf:type ontology:city . ?g rdf:type ontology:type_of_french_administrative_division } UNION { ?j property:capital_of ?g . ?j rdf:type ontology:city . ?g rdf:type ontology:state } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { resource:Palangkaraya property:capital_of ?d . { VALUES ( ?w ) { ( ontology:state ) ( ontology:type_of_french_administrative_division ) } . ?d rdf:type ?w } } } . FILTER ( ?h > ?x ) }
[]
type of french administrative division state city
SYSTEM
58
Q3572 Q19689 Q8131 Q27860 Q3624 Q58650 Q71305 Q18970 Q80989 Q3926 Q23482 Q5838 Q1899 Q1794 Q665 Q1486 Q220445 Q1461 Q23430 Q8684 Q3838 Q6602 Q1069007 Q7568 Q1731 Q19660 Q1953 Q9005 Q1330294 Q2773 Q1854 Q308657 Q3826 Q68481 Q2936 Q7929221 Q11194 Q83247 Q11443 Q183584 Q2844 Q11725 Q73156 Q1865 Q18342086 Q72778 Q187136 Q6582 Q107401 Q1761 Q2069869 Q456 Q7003 Q726993 Q3919 Q1530 Q2999 Q16666
(c(Q515),P1376,c(Q20667921)|c(Q7275))
action count
action greater
action union
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_multi_types
action find
entity Q14409
relation P1376
type Q20667921
type Q7275
[ANSWER]
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q20667921'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?h ) WHERE { { ?j property:P1376 ?g . ?j rdf:type ontology:Q515 . ?g rdf:type ontology:Q20667921 } UNION { ?j property:P1376 ?g . ?j rdf:type ontology:Q515 . ?g rdf:type ontology:Q7275 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { resource:Q14409 property:P1376 ?d . { VALUES ( ?w ) { ( ontology:Q7275 ) ( ontology:Q20667921 ) } . ?d rdf:type ?w } } } . FILTER ( ?h > ?x ) }
Tunis Tirana Palembang Jayapura Addis Ababa Zhangjiakou Ezhou Ambon Bhopal Pretoria Marseille Kabul Kyiv Frankfurt Lugdunum Buenos Aires Kuching Manila Ulaanbaatar Seoul Kinshasa Strasbourg Washukanni Yogyakarta Dresden Bucharest Yerevan Brussels Jiankang Braunschweig Ho Chi Minh City Minas Tirith Muscat Fuzhou Oldenburg Vijaya Sarajevo Braga Kediri Lanzhou Brasília Chongqing Linfen Kuala Lumpur Oyo-Ile Taiyuan Luoyang Carcassonne Sivas Dublin Edoras Lyon Dijon Cotabato City Gaborone Baghdad Würzburg Nanjing
58
action count
action greater
action union
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_multi_types
action find
entity Palangkaraya
relation capital of
type type of french administrative division
type state
[{'concept': 'city'}, 'capital of', [{'concept': 'type of french administrative division'}, {'concept': 'state'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?h ) WHERE { { ?j property:capital_of ?g . ?j rdf:type ontology:city . ?g rdf:type ontology:type_of_french_administrative_division } UNION { ?j property:capital_of ?g . ?j rdf:type ontology:city . ?g rdf:type ontology:state } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { resource:Palangkaraya property:capital_of ?d . { VALUES ( ?w ) { ( ontology:state ) ( ontology:type_of_french_administrative_division ) } . ?d rdf:type ?w } } } . FILTER ( ?h > ?x ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q177149
P1376
Q20667921 Q7275 Q515
USER
And also tell me about Obihiro?
(c(Q515),P1376,c(Q20667921)|c(Q7275))
action count
action greater
action union
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_multi_types
action find
entity Q177149
relation P1376
type Q20667921
type Q7275
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q20667921'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { VALUES ( ?q ) { ( ontology:Q7275 ) ( ontology:Q20667921 ) } . ?o rdf:type ?q } . resource:Q177149 property:P1376 ?o } } . FILTER ( ?e > ?t ) . { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?e ) WHERE { { ?y property:P1376 ?r . ?y rdf:type ontology:Q515 . ?r rdf:type ontology:Q20667921 } UNION { ?r rdf:type ontology:Q7275 . ?y rdf:type ontology:Q515 . ?y property:P1376 ?r } } GROUP BY ?y } }
Obihiro
action count
action greater
action union
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_multi_types
action find
entity Obihiro
relation capital of
type type of french administrative division
type state
[{'concept': 'city'}, 'capital of', [{'concept': 'type of french administrative division'}, {'concept': 'state'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { VALUES ( ?q ) { ( ontology:state ) ( ontology:type_of_french_administrative_division ) } . ?o rdf:type ?q } . resource:Obihiro property:capital_of ?o } } . FILTER ( ?e > ?t ) . { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?e ) WHERE { { ?y property:capital_of ?r . ?y rdf:type ontology:city . ?r rdf:type ontology:type_of_french_administrative_division } UNION { ?r rdf:type ontology:state . ?y rdf:type ontology:city . ?y property:capital_of ?r } } GROUP BY ?y } }
[]
type of french administrative division state city
SYSTEM
58
Q3572 Q19689 Q8131 Q27860 Q3624 Q58650 Q71305 Q18970 Q80989 Q3926 Q23482 Q5838 Q1899 Q1794 Q665 Q1486 Q220445 Q1461 Q23430 Q8684 Q3838 Q6602 Q1069007 Q7568 Q1731 Q19660 Q1953 Q9005 Q1330294 Q2773 Q1854 Q308657 Q3826 Q68481 Q2936 Q7929221 Q11194 Q83247 Q11443 Q183584 Q2844 Q11725 Q73156 Q1865 Q18342086 Q72778 Q187136 Q6582 Q107401 Q1761 Q2069869 Q456 Q7003 Q726993 Q3919 Q1530 Q2999 Q16666
(c(Q515),P1376,c(Q20667921)|c(Q7275))
action count
action greater
action union
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_multi_types
action find
entity Q177149
relation P1376
type Q20667921
type Q7275
[ANSWER]
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q20667921'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { VALUES ( ?q ) { ( ontology:Q7275 ) ( ontology:Q20667921 ) } . ?o rdf:type ?q } . resource:Q177149 property:P1376 ?o } } . FILTER ( ?e > ?t ) . { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?e ) WHERE { { ?y property:P1376 ?r . ?y rdf:type ontology:Q515 . ?r rdf:type ontology:Q20667921 } UNION { ?r rdf:type ontology:Q7275 . ?y rdf:type ontology:Q515 . ?y property:P1376 ?r } } GROUP BY ?y } }
Tunis Tirana Palembang Jayapura Addis Ababa Zhangjiakou Ezhou Ambon Bhopal Pretoria Marseille Kabul Kyiv Frankfurt Lugdunum Buenos Aires Kuching Manila Ulaanbaatar Seoul Kinshasa Strasbourg Washukanni Yogyakarta Dresden Bucharest Yerevan Brussels Jiankang Braunschweig Ho Chi Minh City Minas Tirith Muscat Fuzhou Oldenburg Vijaya Sarajevo Braga Kediri Lanzhou Brasília Chongqing Linfen Kuala Lumpur Oyo-Ile Taiyuan Luoyang Carcassonne Sivas Dublin Edoras Lyon Dijon Cotabato City Gaborone Baghdad Würzburg Nanjing
58
action count
action greater
action union
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_multi_types
action find
entity Obihiro
relation capital of
type type of french administrative division
type state
[{'concept': 'city'}, 'capital of', [{'concept': 'type of french administrative division'}, {'concept': 'state'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { VALUES ( ?q ) { ( ontology:state ) ( ontology:type_of_french_administrative_division ) } . ?o rdf:type ?q } . resource:Obihiro property:capital_of ?o } } . FILTER ( ?e > ?t ) . { SELECT DISTINCT ?y ( COUNT ( ?r ) AS ?e ) WHERE { { ?y property:capital_of ?r . ?y rdf:type ontology:city . ?r rdf:type ontology:type_of_french_administrative_division } UNION { ?r rdf:type ontology:state . ?y rdf:type ontology:city . ?y property:capital_of ?r } } GROUP BY ?y } }
[]